.page-ecosystem {
  --eco-navy: #17242f;
  --eco-on-navy: #e2ebf4;
  --eco-heading: #142c33;
  --eco-text: #5b6b70;
  --eco-card-text: #6f6c90;
  --eco-mist: #e2ebf4;
  --eco-card-bg: #f1f5f9;
  --eco-green: var(--color-primary, #27d068);
  --eco-max: 1290px;
  --eco-card-w: min(70vw, var(--eco-max));
}

@media (min-width: 768px) {
  .page-ecosystem .eco-hero .section-inner,
  .page-ecosystem .eco-market .section-inner,
  .page-ecosystem .eco-partners .section-inner {
    width: min(var(--eco-max), calc(100% - 2 * var(--page-gutter)));
  }
}

.eco-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eco-title {
  margin: 0;
  font-family: Alaska, Arial, Helvetica, sans-serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--eco-heading);
  overflow-wrap: break-word;
}

.eco-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--eco-text);
}

/* Hero */

.eco-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 44vw, 720px);
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-secondary, #142c33) 0%, var(--color-secondary, #142c33) 30%, #1e3d46 100%);
}

/* The photo shows through the Kamuno "K"; the rest of it stays as a faint ghost. */
.eco-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
}

.eco-hero__ghost,
.eco-hero__image {
  /* Both copies are sized from the hero height, like the K mask, so they line up and the faces stay inside the K at any width. */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  object-position: 100% 30%;
}

.eco-hero__ghost {
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 60%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, #000 60%, #000 92%, transparent 100%);
}

.eco-hero__image {
  -webkit-mask: url("./assets/images/hero-k-mask.svg") no-repeat 0 100% / auto 112%, linear-gradient(90deg, transparent 15%, #000 50%);
  -webkit-mask-composite: source-in;
  mask: url("./assets/images/hero-k-mask.svg") no-repeat 0 100% / auto 112%, linear-gradient(90deg, transparent 15%, #000 50%);
  mask-composite: intersect;
}

/* Hand-drawn green underline, same as the scaleup hero. */
.eco-hero__mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.eco-hero__mark-line {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.2em;
  overflow: visible;
  pointer-events: none;
}

.eco-hero__mark-line path {
  fill: none;
  stroke: #2fcb63;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  /* Gap longer than the path so the round caps don't show as dots before the line is drawn. */
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

.eco-hero__mark-line path + path {
  stroke-width: 5;
  opacity: 0.85;
}

html.js .eco-hero__mark-line path {
  stroke-dashoffset: 1.05;
}

html.js .eco-hero.eco-anim--ready .eco-hero__mark-line path {
  animation: eco-mark-draw calc(var(--eco-motion) * 1) cubic-bezier(0.65, 0, 0.35, 1) calc(var(--eco-motion) * 1.3) forwards;
}

html.js .eco-hero.eco-anim--ready .eco-hero__mark-line path + path {
  animation-duration: calc(var(--eco-motion) * 0.7);
  animation-delay: calc(var(--eco-motion) * 2.1);
}

@keyframes eco-mark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

html.js.reduced-motion .eco-hero__mark-line path {
  animation: none !important;
  stroke-dashoffset: 0 !important;
}

.eco-hero__band {
  width: 100%;
  padding: 72px 0;
}

.eco-hero__grid {
  display: block;
}

.eco-hero__grid > * {
  max-width: min(520px, 40%);
}

/* Same scale as the scaleup hero title (.hero-title--long). */
.eco-hero__title {
  margin: 0 0 24px;
  font-family: Alaska, Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #fff;
}

.eco-hero__sub {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 26px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.eco-hero__actions {
  margin: 0;
}

.eco-hero__actions .hero-secondary.is-light {
  --ghost-btn-border: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.eco-hero__actions .hero-secondary.is-light:hover,
.eco-hero__actions .hero-secondary.is-light:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Market assessment */

.eco-market {
  padding: 48px 0 96px;
  background: #fff;
}

.eco-market__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 120px;
  align-items: start;
}

.eco-market__media {
  grid-column: 1;
  grid-row: 1;
}

.eco-market__copy {
  grid-column: 2;
  grid-row: 1;
}

.eco-market__copy .eco-title {
  margin-bottom: 32px;
}

.eco-market__copy .eco-text {
  font-weight: 300;
  color: rgba(19, 53, 74, 1);
}

.eco-market__intro .eco-text + .eco-text {
  margin-top: 16px;
}

.eco-market__copy .eco-market__lead {
  margin-top: 28px;
  font-weight: 600;
}

.eco-market__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 50px;
  background: #0d141b;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* Partners */

.eco-partners {
  padding: 64px 0 128px;
  background: var(--eco-mist);
}

.eco-partners__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eco-partners .section-kicker {
  margin-bottom: 16px;
}

.eco-partners__head .eco-title {
  margin-bottom: 20px;
}

.eco-carousel__arrows {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.eco-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--eco-heading);
  box-shadow: 0 4px 12px rgba(20, 44, 51, 0.06);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.eco-carousel__arrow svg {
  width: 18px;
  height: 18px;
}

.eco-carousel__arrow:hover:not(:disabled) {
  background: var(--eco-card-bg);
  box-shadow: 0 8px 20px rgba(20, 44, 51, 0.1);
}

.eco-carousel__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.eco-carousel__arrow:focus-visible,
.eco-carousel__thumb:focus-visible,
.eco-card__more:focus-visible,
.eco-card__link:focus-visible,
.eco-carousel__track:focus-visible {
  outline: 2px solid var(--eco-heading);
  outline-offset: 3px;
}

.eco-carousel__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 0;
  /* Room for the card shadow; the logo grid is pulled up underneath it. */
  padding: 30px calc((100% - var(--eco-card-w)) / 2) 80px;
  list-style: none;
  overflow-x: auto;
  pointer-events: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.eco-carousel__track::-webkit-scrollbar {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .eco-carousel__track {
    cursor: grab;
  }
}

.eco-carousel__track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.eco-carousel__track > * {
  pointer-events: auto;
}

.eco-carousel__track img {
  -webkit-user-drag: none;
}

.eco-card {
  position: relative;
  display: flex;
  flex: 0 0 var(--eco-card-w);
  padding: 10px;
  border-radius: 30px;
  background: var(--eco-card-bg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.02);
  scroll-snap-align: center;
  transition: box-shadow 0.2s ease;
}

.eco-card:hover {
  box-shadow: 0 24px 48px rgba(20, 44, 51, 0.08);
}

.eco-card__logo {
  display: flex;
  flex: 0 0 300px;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 24px;
  border-radius: 22px 0 0 22px;
  background: var(--logo-bg, #fff);
}

.eco-card__logo img {
  width: 90%;
  height: 36%;
  object-fit: contain;
}

.eco-card__logo--white img {
  filter: brightness(0) invert(1);
}

.eco-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 30px;
}


.eco-card__name {
  margin: 0 0 14px;
  font-family: Alaska, Arial, Helvetica, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--eco-heading);
}

.eco-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--eco-card-text);
}

.js .eco-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: height 0.35s ease;
}

.js .eco-card.is-expanded .eco-card__desc {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
}

.eco-card__more {
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--eco-card-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.eco-card__more:hover {
  text-decoration-thickness: 2px;
}

.eco-card__more[hidden] {
  display: none;
}

.eco-card__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #d5dee6;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #17242f;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.eco-card__link:hover {
  background: #c9d3dc;
}

.eco-card__link svg {
  width: 12px;
  height: 12px;
}

.eco-carousel__nav {
  --nav-cols: 8;
  --nav-gap: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nav-gap);
  width: min(960px, calc(100% - 2 * var(--page-gutter)));
  margin: -40px auto 0;
  padding: 0;
  list-style: none;
}

.eco-carousel__nav > li {
  flex: 0 0 calc((100% - (var(--nav-cols) - 1) * var(--nav-gap)) / var(--nav-cols));
  min-width: 0;
}

.eco-carousel__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background-color: transparent;
  cursor: pointer;
  container-type: inline-size;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

/* Width grows with the square root of the aspect ratio, so every logo covers about the same area. */
.eco-carousel__thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92cqw, 42cqw * var(--logo-ar, 3), 33cqw * sqrt(var(--logo-ar, 3)) * var(--logo-scale, 1));
  height: auto;
  translate: -50% -50%;
  object-fit: contain;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* The partner pages show the proof strip under the hero in colour; other logo rows keep the shared tint. */
/* One row of awards from tablet up; spread to the content width instead of wrapping. */
@media (min-width: 768px) {
  .page-ecosystem .section--trust-top .trustmarks-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px;
  }
}

@media (min-width: 768px) and (max-width: 899.98px) {
  .page-ecosystem .section--trust-top .trustmarks-row {
    zoom: 0.85;
  }
}

.page-ecosystem .section--trust-top .trustmark-logo {
  filter: none;
  opacity: 1;
}

/* Same tint as .trustmark-logo in the shared trust-partner strip. */
.eco-carousel__thumb-mono {
  opacity: 0.4;
  filter: brightness(0) invert(30%) sepia(10%) hue-rotate(170deg) saturate(150%);
}

.trustmark-tint--cembra,
.trustmark-tint--financescout24 {
  filter: grayscale(1) contrast(0.85) brightness(1.1) sepia(0.1) hue-rotate(170deg) saturate(1.5);
}

.eco-carousel__thumb:hover .eco-carousel__thumb-mono {
  filter: none;
  opacity: 1;
}

/* White-only logo files would disappear in full colour, so they only darken on hover. */
.eco-carousel__thumb--light:hover .eco-carousel__thumb-mono {
  filter: brightness(0) invert(30%) sepia(10%) hue-rotate(170deg) saturate(150%);
  opacity: 0.7;
}

.eco-carousel__thumb-color {
  opacity: 0;
}

.eco-carousel__thumb--white .eco-carousel__thumb-color {
  filter: brightness(0) invert(1);
}

.eco-carousel__thumb[aria-current="true"] {
  background-color: var(--logo-bg, #fff);
  transform: translateY(-2px);
}

.eco-carousel__thumb[aria-current="true"] .eco-carousel__thumb-mono {
  opacity: 0;
}

.eco-carousel__thumb[aria-current="true"] .eco-carousel__thumb-color {
  opacity: 1;
}

/* Load and scroll motion, same feel as the scaleup page. */

.page-ecosystem {
  --eco-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --eco-motion: 700ms;
  --eco-word-step: 80ms;
  --eco-reveal-step: 120ms;
  --eco-reveal-shift: 26px;
}

html.js .eco-hero__media {
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity calc(var(--eco-motion) * 1.2) var(--eco-ease),
    transform calc(var(--eco-motion) * 2) var(--eco-ease);
}

html.js .eco-hero__word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(1.14);
  filter: blur(8px);
  transition:
    opacity calc(var(--eco-motion) * 0.75) var(--eco-ease),
    transform var(--eco-motion) var(--eco-ease),
    filter var(--eco-motion) var(--eco-ease);
  transition-delay: calc(90ms + var(--word-index, 0) * var(--eco-word-step));
}

html.js .eco-hero__sub,
html.js .eco-hero__actions {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity calc(var(--eco-motion) * 0.8) var(--eco-ease),
    transform calc(var(--eco-motion) * 0.8) var(--eco-ease);
}

html.js .eco-hero__sub {
  transition-delay: calc(var(--eco-word-step) * 4);
}

html.js .eco-hero__actions {
  transition-delay: calc(var(--eco-word-step) * 6);
}

html.js .eco-hero.eco-anim--ready .eco-hero__media,
html.js .eco-hero.eco-anim--ready .eco-hero__word,
html.js .eco-hero.eco-anim--ready .eco-hero__sub,
html.js .eco-hero.eco-anim--ready .eco-hero__actions {
  opacity: 1;
  transform: none;
  filter: none;
}

html.js .eco-reveal {
  opacity: 0;
  transform: translate3d(0, var(--eco-reveal-shift), 0);
  transition:
    opacity var(--eco-motion) var(--eco-ease),
    transform var(--eco-motion) var(--eco-ease);
  transition-delay: calc(var(--reveal-step, 0) * var(--eco-reveal-step));
}

html.js .eco-reveal.is-in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 767.98px) {
  .page-ecosystem {
    --eco-motion: 420ms;
    --eco-word-step: 40ms;
    --eco-reveal-step: 60ms;
    --eco-reveal-shift: 16px;
  }
}

html.js.reduced-motion .eco-hero__media,
html.js.reduced-motion .eco-hero__word,
html.js.reduced-motion .eco-hero__sub,
html.js.reduced-motion .eco-hero__actions,
html.js.reduced-motion .eco-reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .eco-carousel__track,
  .eco-carousel__nav {
    scroll-behavior: auto;
  }

  .eco-carousel__thumb,
  .eco-carousel__thumb img,
  .js .eco-card__desc {
    transition: none;
  }
}

@media (max-width: 1199.98px) {
  .eco-hero__grid,
  .eco-market__grid {
    column-gap: 64px;
  }

  .eco-title {
    font-size: 44px;
  }

  .eco-card__logo {
    flex-basis: 240px;
  }

  .eco-card__name {
    font-size: 36px;
  }
}

@media (max-width: 1023.98px) {
  .page-ecosystem {
    --eco-card-w: 80vw;
  }

  .eco-market__grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .eco-market__media,
  .eco-market__copy {
    grid-column: auto;
    grid-row: auto;
  }

  .eco-hero__grid {
    column-gap: 40px;
  }

  .eco-card__name {
    font-size: 30px;
  }

  .eco-hero__band {
    padding: 48px 0 44px;
  }

  .eco-hero__title {
    margin: 0 0 20px;
  }

  .eco-hero__grid > * {
    max-width: 42%;
  }

  .eco-market__copy .eco-title {
    margin-bottom: 20px;
  }

  .eco-card {
    flex-direction: column;
  }

  .eco-card__logo {
    flex-basis: auto;
    aspect-ratio: 16 / 9;
    max-height: 260px;
    border-radius: 22px 22px 0 0;
  }

  .eco-card__logo img {
    width: 50%;
    height: 40%;
  }
}

@media (max-width: 767.98px) {
  .page-ecosystem {
    --eco-card-w: calc(100vw - 2 * var(--page-gutter) - 16px);
  }

  .eco-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .eco-hero__band {
    padding: 0 0 56px;
  }

  .eco-hero__grid > * {
    max-width: none;
  }

  /* Rounded photo card above the copy, like the scaleup hero on mobile. */
  .eco-hero__media {
    position: relative;
    order: -1;
    left: auto;
    height: min(46vw, 200px);
    margin: 16px var(--page-gutter) 40px;
    overflow: hidden;
    border-radius: 20px;
  }

  .eco-hero__ghost {
    display: none;
  }

  .eco-hero__image {
    right: 0;
    width: 100%;
    aspect-ratio: auto;
    object-position: 30% 30%;
    -webkit-mask: none;
    mask: none;
  }

  .eco-title {
    font-size: 32px;
    hyphens: auto;
  }

  .eco-hero__title {
    font-size: clamp(34px, 8.5vw, 44px);
    margin-bottom: 24px;
  }

  .eco-hero__sub {
    margin-bottom: 40px;
  }

  .eco-market {
    padding: 40px 0 64px;
  }

  .eco-market__grid {
    row-gap: 24px;
  }

  .eco-market__video {
    border-radius: 24px;
  }

  .eco-partners {
    padding: 48px 0 64px;
  }

  .eco-partners__head {
    flex-direction: column;
    align-items: stretch;
  }

  .eco-partners__head .eco-title {
    margin-bottom: 12px;
  }

  .eco-carousel__arrows {
    align-self: flex-end;
  }

  .eco-carousel__track {
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .eco-card {
    padding: 8px;
    border-radius: 24px;
  }

  .eco-card__logo {
    padding: 24px;
    max-height: 180px;
    border-radius: 18px 18px 0 0;
  }

  .eco-card__body {
    padding: 20px 16px 16px;
  }

  .eco-card__name {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .eco-card__link {
    margin-top: 18px;
  }

  .eco-carousel__nav {
    --nav-cols: 4;
    --nav-gap: 8px;
    margin-top: 4px;
  }

  .eco-carousel__thumb {
    border-radius: 12px;
  }
}

@media (max-width: 359.98px) {
  .eco-hero__title {
    font-size: 30px;
  }
}

/* Partner hero (.pw-hero): full-bleed photo with a CSS teal fade and the Kamuno K as diagonal glass. Shared by the ecosystem and partner-werden pages. */

.eco-hero.pw-hero {
  align-items: center;
  min-height: clamp(650px, 52vw, 750px);
  background: #07262f;
}

.pw-hero .eco-hero__media {
  left: 30%;
  z-index: 0;
}

html.js .pw-hero .eco-hero__media {
  transform: scale(1.035);
}

.pw-hero {
  --pw-k-x: 13vw;
  --pw-k-mask: url("./assets/images/hero-k-mask.svg") no-repeat left var(--pw-k-x) bottom 0 / auto 112%;
  --pw-k-fade: linear-gradient(90deg, transparent 4%, #000 30%);
}

.pw-hero .eco-hero__ghost,
.pw-hero .eco-hero__image {
  right: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 66% 30%;
}

.pw-hero .eco-hero__ghost {
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.pw-hero__shade,
.pw-hero__glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pw-hero__shade {
  background:
    linear-gradient(
      90deg,
      rgba(7, 38, 47, 0.92) 0%,
      rgba(7, 38, 47, 0.72) 17%,
      rgba(7, 38, 47, 0.3) 43%,
      rgba(7, 38, 47, 0) 78%
    ),
    rgba(7, 38, 47, 0.14);
}

/* The Kamuno "K": the photo shows through it untinted, with a faint glass sheen on top. */
.pw-hero .eco-hero__image,
.pw-hero__glass {
  -webkit-mask: var(--pw-k-mask), var(--pw-k-fade);
  -webkit-mask-composite: source-in;
  mask: var(--pw-k-mask), var(--pw-k-fade);
  mask-composite: intersect;
}

.pw-hero__glass {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.pw-hero .eco-hero__band {
  position: relative;
  z-index: 3;
  padding: 88px 0;
}

.pw-hero .eco-hero__grid {
  width: 100%;
  max-width: none;
  padding: 0 clamp(24px, 6vw, 112px);
}

.pw-hero .eco-hero__grid > * {
  max-width: none;
}

.pw-hero .eco-hero__title {
  max-width: 560px;
}

.pw-hero .eco-hero__sub {
  max-width: 480px;
  margin: 0 0 40px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 520px) {
  .pw-hero .eco-hero__actions {
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: none;
  }

  .pw-hero .eco-hero__actions .km-primary-btn {
    flex: 0 0 250px;
    width: 250px;
  }

  .pw-hero .eco-hero__actions .hero-secondary {
    flex: 0 0 auto;
    width: auto;
    min-width: 190px;
    padding: 0 28px;
  }
}

.pw-cal-btn {
  gap: 8px;
  white-space: nowrap;
}

.pw-cal-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.pw-hero__trust {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

/* Entrance: words rise without the shared hero's blur and zoom; the buttons use `translate` so their hover `transform` still works. */
html.js .pw-hero .eco-hero__word {
  transform: translate3d(0, 18px, 0);
  filter: none;
  transition-delay: calc(60ms + var(--word-index, 0) * 45ms);
}

html.js .pw-hero .eco-hero__sub {
  transition-delay: 420ms;
}

html.js .pw-hero .eco-hero__actions {
  opacity: 1;
  transform: none;
  transition: none;
}

html.js .pw-hero .eco-hero__actions > a,
html.js .pw-hero .pw-hero__trust {
  opacity: 0;
}

html.js .pw-hero.eco-anim--ready .eco-hero__actions > a,
html.js .pw-hero.eco-anim--ready .pw-hero__trust {
  animation: pw-hero-rise 600ms var(--eco-ease) both;
}

html.js .pw-hero.eco-anim--ready .eco-hero__actions > a:first-child {
  animation-delay: 560ms;
}

html.js .pw-hero.eco-anim--ready .eco-hero__actions > a + a {
  animation-delay: 660ms;
}

html.js .pw-hero.eco-anim--ready .pw-hero__trust {
  animation-delay: 800ms;
}

@keyframes pw-hero-rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

html.js.reduced-motion .pw-hero .eco-hero__actions > a,
html.js.reduced-motion .pw-hero .pw-hero__trust {
  opacity: 1;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .pw-hero .eco-hero__actions > a,
  html.js .pw-hero .pw-hero__trust {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 1199.98px) {
  .pw-hero__shade {
    background: linear-gradient(
      90deg,
      rgba(7, 38, 47, 0.94) 0%,
      rgba(7, 38, 47, 0.76) 22%,
      rgba(7, 38, 47, 0.32) 50%,
      rgba(7, 38, 47, 0) 82%
    );
  }
}

@media (max-width: 1023.98px) {
  .eco-hero.pw-hero {
    min-height: 620px;
  }

  .pw-hero .eco-hero__band {
    padding: 64px 0;
  }

  .pw-hero .eco-hero__title {
    max-width: 440px;
  }

  .pw-hero .eco-hero__sub {
    max-width: 420px;
    margin-bottom: 32px;
  }

  .pw-hero {
    --pw-k-x: 4vw;
  }

  .pw-hero .eco-hero__media {
    left: 40%;
  }

  .pw-hero__shade {
    background: linear-gradient(
      90deg,
      rgba(7, 38, 47, 0.95) 0%,
      rgba(7, 38, 47, 0.8) 20%,
      rgba(7, 38, 47, 0.4) 50%,
      rgba(7, 38, 47, 0.1) 100%
    );
  }

  .pw-hero .eco-hero__ghost,
  .pw-hero .eco-hero__image {
    object-position: 74% 30%;
  }
}

@media (max-width: 767.98px) {
  .eco-hero.pw-hero {
    flex-direction: row;
    align-items: flex-end;
    min-height: 720px;
  }

  /* The photo covers only the top of the hero, so it scales down and shows more of the room; the text sits on the solid teal below. */
  .pw-hero {
    --pw-k-mask: url("./assets/images/hero-k-mask.svg") no-repeat right -140px top 24px / auto 340px;
    --pw-k-fade: linear-gradient(180deg, #000 45%, transparent 92%);
  }

  .pw-hero .eco-hero__media {
    position: absolute;
    inset: 0 0 auto;
    height: 64%;
    margin: 0;
    border-radius: 0;
  }

  .pw-hero .eco-hero__ghost {
    display: block;
    object-position: 58% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }

  .pw-hero .eco-hero__image {
    object-position: 58% 30%;
  }

  .pw-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(7, 38, 47, 0.2) 0%,
      rgba(7, 38, 47, 0.35) 45%,
      rgba(7, 38, 47, 0.85) 80%,
      rgba(7, 38, 47, 1) 100%
    );
  }

  .pw-hero .eco-hero__band {
    padding: 300px 0 48px;
  }

  .pw-hero .eco-hero__grid {
    padding: 0 var(--page-gutter, 20px);
  }

  .pw-hero .eco-hero__title {
    max-width: none;
  }

  .pw-hero .eco-hero__sub {
    margin-bottom: 28px;
    font-size: 17px;
  }

  .pw-hero__trust {
    margin-top: 20px;
  }
}
