.td-final-story {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(620px, 68vw, 900px);
  margin: clamp(32px, 5vw, 72px) clamp(10px, 3vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(139, 255, 204, 0.22);
  border-radius: clamp(22px, 3vw, 38px);
  background: #070b09;
  color: #f5faf7;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.td-final-story__media,
.td-final-story__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.td-final-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 7, 5, 0.97) 0%, rgba(3, 7, 5, 0.91) 31%, rgba(3, 7, 5, 0.58) 51%, rgba(3, 7, 5, 0.08) 78%),
    linear-gradient(0deg, rgba(3, 7, 5, 0.56), transparent 36%);
}

.td-final-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.td-final-story__media figcaption {
  position: absolute;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 2;
  max-width: 46ch;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(3, 7, 5, 0.74);
  color: #dce9e2;
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: right;
  backdrop-filter: blur(12px);
}

.td-final-story__copy {
  position: relative;
  z-index: 2;
  width: min(54%, 790px);
  padding: clamp(54px, 7vw, 110px);
}

.td-final-story__eyebrow {
  margin: 0 0 20px;
  color: #84f1bd;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.td-final-story h2 {
  max-width: 12ch;
  margin: 0;
  scroll-margin-top: 112px;
  color: #f8fcf9;
  font-size: clamp(2.65rem, 5.25vw, 5.65rem);
  line-height: 0.96;
  letter-spacing: -0.058em;
}

.td-final-story__copy > p:not(.td-final-story__eyebrow) {
  max-width: 58ch;
  margin: 26px 0 0;
  color: #d1ddd6;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.62;
}

.td-final-story__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 34px;
  padding: 14px 23px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #69e7b1;
  color: #07150e;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(73, 226, 163, 0.2), inset 0 1px rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.td-final-story__button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(73, 226, 163, 0.27), inset 0 1px rgba(255, 255, 255, 0.55);
}

.td-final-story__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.sp-hero > figure > picture,
.hero > figure > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sp-hero > figure > picture > img,
.hero > figure > picture > img {
  width: 100%;
  height: 100%;
}

@media (min-width: 1101px) {
  .sp-hero:not(.pontaj-hero) > figure > picture > img {
    object-fit: contain;
    object-position: right center;
  }
}

@media (max-width: 760px) {
  .td-final-story {
    display: flex;
    min-height: 0;
    margin: 24px 10px;
    border-radius: 22px;
    flex-direction: column;
  }

  .td-final-story__media,
  .td-final-story__media picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .td-final-story__media {
    aspect-ratio: 752 / 940;
    overflow: hidden;
  }

  .td-final-story__media picture {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .td-final-story__media::after {
    background: linear-gradient(0deg, rgba(3, 7, 5, 0.58), transparent 38%);
  }

  .td-final-story__media figcaption {
    right: 14px;
    bottom: 12px;
    left: 14px;
    max-width: none;
    border-radius: 14px;
    font-size: 0.62rem;
    text-align: left;
  }

  .td-final-story__copy {
    width: 100%;
    padding: 34px 22px 40px;
  }

  .td-final-story h2 {
    max-width: 14ch;
    font-size: clamp(2.15rem, 10vw, 3.45rem);
  }

  .td-final-story__copy > p:not(.td-final-story__eyebrow) {
    margin-top: 22px;
    font-size: 1rem;
  }

  .td-final-story__button {
    width: 100%;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.td-final-story-js .td-final-story:not(.is-visible) .td-final-story__copy {
    opacity: 0;
    transform: translateY(28px);
  }

  html.td-final-story-js .td-final-story .td-final-story__copy {
    transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  html.td-final-story-js .td-final-story.is-visible .td-final-story__media img {
    transform: scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-final-story__media img,
  .td-final-story__copy,
  .td-final-story__button {
    transition: none;
    transform: none;
  }
}
