.letter-scroll-track {
  position: relative;
  max-width: 820px;
  margin: 28px auto 0;
  overflow-anchor: none;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper {
  position: sticky;
  top: 6vh;
  top: 6svh;
  height: min(820px, 88vh);
  height: min(820px, 88svh);
  margin: 0;
  max-width: none;
  overflow: hidden;
  overflow-anchor: none;
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  transition: none;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper > summary {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  overflow: visible;
  border: 1px solid #718b53;
  border-radius: 15px !important;
  will-change: transform;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper > summary::before {
  content: none;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .envelope-flap {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: auto;
  height: 162px;
  background: linear-gradient(180deg, #41543a, #2a3b22);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  will-change: transform, opacity;
  backface-visibility: visible;
  pointer-events: none;
  transition: none;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .envelope-seal {
  transition: none;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .eu-pitch-copy {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
  max-height: none !important;
  background: none !important;
  border: 0 !important;
  overflow: visible;
  perspective: 1100px;
  animation: none !important;
  opacity: 1 !important;
  transition: none;
  will-change: transform;
}

.paper-panel {
  position: absolute;
  inset: 0 0 auto;
  transform-origin: 50% 0;
  backface-visibility: hidden;
  background: #182618;
  padding: 20px 36px;
}

.paper-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #000);
  opacity: 0;
  pointer-events: none;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .paper-panel > p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #e0e7d9 !important;
  max-width: none !important;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .paper-panel > p + p {
  margin-top: 16px !important;
}

.eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .paper-panel > .eu-pitch-signoff {
  font-family: var(--serif);
  font-size: 26px !important;
  line-height: 1.4 !important;
  font-style: italic;
  color: #d4f0ab !important;
  border: 0;
  padding: 10px 0 0;
}

.pitch-envelope .envelope-toggle { display: none; }
.eu-mentorship .eu-pitch { opacity: 1 !important; transform: none !important; filter: none !important; }
.pitch-without-motion .eu-pitch-lead { display: none; }

.eu-mentorship .eu-pitch.pitch-without-motion .pitch-envelope[open] .eu-pitch-copy {
  animation: none !important;
}

.eu-mentorship .eu-pitch .letter-static .pitch-envelope {
  margin-top: 0;
}

.mentorship-diagram img { filter: none; max-width: 220px; }

@media (max-width: 760px) {
  .letter-scroll-track { margin-top: 24px; }
  .paper-panel { padding: 16px 20px; }
  .eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .envelope-flap { height: 138px; }
  .eu-mentorship .eu-pitch .pitch-envelope.scroll-paper .paper-panel > p { line-height: 1.75 !important; }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .eu-mentorship .eu-pitch {
    background-size: 100% 420px;
    background-repeat: no-repeat;
  }

  .eu-mentorship .eu-pitch .pitch-envelope:not(.scroll-paper) {
    border-color: #6e8850;
    box-shadow: none;
    transition: none;
  }

  .eu-mentorship .eu-pitch .pitch-envelope:not(.scroll-paper) > summary::before {
    transition: none;
  }

  .eu-mentorship .eu-pitch .pitch-envelope[open]:not(.scroll-paper) > summary::before {
    transform: scaleY(.05);
    opacity: .32;
  }

  .eu-mentorship .eu-pitch .pitch-envelope[open]:not(.scroll-paper) .eu-pitch-copy {
    background: #182618;
    border-top: 0;
    animation: none;
  }

  .eu-mentorship .eu-pitch .pitch-envelope:not(.scroll-paper) .eu-pitch-copy > p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #e0e7d9;
  }

  .eu-mentorship .eu-pitch .pitch-envelope:not(.scroll-paper) .eu-pitch-copy > .eu-pitch-signoff {
    font-size: 25px !important;
    line-height: 1.4 !important;
    color: #d4f0ab;
  }

  .eu-mentorship .eu-pitch .eu-pitch-lead { display: none; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @media (prefers-reduced-motion: no-preference) {
      .eu-mentorship .eu-pitch:not(.pitch-without-motion) .eu-pitch-lead { display: block; }

      .eu-mentorship .eu-pitch .pitch-envelope:not(.scroll-paper) > summary {
        view-timeline-name: --pitch-cover;
      }

      .eu-mentorship .eu-pitch:not(.pitch-without-motion) .pitch-envelope[open]:not(.scroll-paper) > summary::before {
        animation: mobile-pitch-fold auto linear both;
        animation-timeline: --pitch-cover;
        animation-range: entry 10% entry 94%;
      }
    }
  }
}

@keyframes mobile-pitch-fold {
  from { transform: scaleY(1); opacity: 1; }
  to { transform: scaleY(.05); opacity: .32; }
}
