@font-face {
  font-family: "TBT Editorial";
  src: url("/fonts/migra-extralight-italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

.mentorship-figma {
  --mentorship-white: #fff;
  --mentorship-paper: #f7f5ef;
  --mentorship-yellow: #fff2b6;
  --mentorship-brown: #493737;
  --mentorship-ink: #181512;
  overflow: hidden;
  background: var(--mentorship-white);
  color: var(--mentorship-brown);
}

.mentorship-figma :where(h1, h2, h3, p, figure, ul) { margin: 0; }
.mentorship-figma img { display: block; width: 100%; }

.mentorship-intro {
  padding: clamp(4.5rem, 14vw, 7rem) var(--tbt-gutter) clamp(5.5rem, 14vw, 7rem);
  background: var(--mentorship-white);
}

.mentorship-intro__top,
.mentorship-figma .mentorship-intro__visual {
  width: min(100%, 75.25rem);
  margin-inline: auto;
}

.mentorship-intro__top {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.mentorship-intro__heading { width: fit-content; }

.mentorship-intro h1 {
  font-size: clamp(2.6rem, 12.5vw, 4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.mentorship-circle {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.mentorship-circle::after {
  content: "";
  position: absolute;
  inset: -0.15em -0.15em -0.08em;
  z-index: -1;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-2deg);
  pointer-events: none;
}

.mentorship-intro__heading > p,
.mentorship-testimonials__heading > p,
.mentorship-help p {
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-weight: 400;
}

.mentorship-intro__heading > p {
  margin-top: 0.65rem;
  font-size: clamp(1.65rem, 6.25vw, 2.35rem);
  line-height: 1;
  text-align: center;
  transform: rotate(-2deg);
}

.mentorship-intro__copy {
  max-width: 35ch;
  color: var(--mentorship-ink);
  font-size: 1rem;
  line-height: 1.38;
}

.mentorship-intro__visual {
  overflow: hidden;
  margin-top: clamp(3.5rem, 8vw, 5rem);
  background: #d8d6d1;
}

.mentorship-intro__visual img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.mentorship-offers {
  padding: 0 var(--tbt-gutter) clamp(2.5rem, 5vw, 4rem);
  background: var(--mentorship-white);
}

.mentorship-offers__grid {
  width: min(100%, 79.25rem);
  display: grid;
  margin-inline: auto;
  border: 1px solid var(--mentorship-brown);
}

.mentorship-offer {
  display: grid;
  grid-template-rows: auto auto 1fr;
  border-bottom: 1px solid var(--mentorship-brown);
  color: var(--mentorship-brown);
}

.mentorship-offer:last-child { border-bottom: 0; }

.mentorship-offer__intro {
  min-height: 20rem;
  padding: 2.65rem clamp(1.55rem, 5vw, 2.9rem) 2.25rem;
}

.mentorship-offer__label {
  display: inline-block;
  padding: 0.55rem 0.7rem 0.48rem;
  background: var(--mentorship-yellow);
  color: var(--mentorship-brown);
  font-size: 0.92rem;
  line-height: 1;
  text-transform: uppercase;
}

.mentorship-offer h2 {
  margin-top: 1.6rem;
  font-size: clamp(2rem, 7vw, 2.3rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.mentorship-offer h2 span { display: block; }

.mentorship-offer__intro p {
  margin-top: 1.1rem;
  color: var(--mentorship-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.mentorship-offer__price {
  min-height: 7.2rem;
  display: grid;
  place-content: center;
  border-block: 1px solid var(--mentorship-brown);
  background: var(--mentorship-yellow);
  text-align: center;
  text-transform: uppercase;
}

.mentorship-offer__price strong {
  font-family: "TBT Editorial", Georgia, serif;
  font-size: clamp(4rem, 16vw, 5.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.76;
  letter-spacing: -0.05em;
}

.mentorship-offer__price span {
  margin-top: 0.8rem;
  color: var(--mentorship-ink);
  font-size: 0.95rem;
  line-height: 1;
}

.mentorship-offer__features {
  min-height: 31.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.3rem clamp(1.55rem, 5vw, 2.5rem) 2.25rem;
}

.mentorship-offer__features h3 {
  color: var(--mentorship-ink);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.mentorship-offer__features ul {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.35rem;
  padding: 0;
  color: var(--mentorship-ink);
  font-size: 0.96rem;
  line-height: 1.32;
  list-style: none;
}

.mentorship-offer__features li::before { content: "—"; }

.mentorship-pill {
  min-width: 14.7rem;
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  background: var(--mentorship-brown);
  box-shadow: 0 1rem 1.45rem rgba(55, 39, 36, 0.22);
  color: var(--mentorship-yellow) !important;
  font-size: 0.96rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mentorship-pill:hover,
.mentorship-pill:focus-visible {
  transform: translateY(-0.15rem);
  box-shadow: 0 1.2rem 1.75rem rgba(55, 39, 36, 0.28);
}

.mentorship-testimonials {
  padding: clamp(3rem, 5vw, 4rem) 0 clamp(5.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--mentorship-brown);
  background: var(--mentorship-white);
}

.mentorship-testimonials__heading {
  width: min(calc(100% - (2 * var(--tbt-gutter))), 68rem);
  margin-inline: auto;
}

.mentorship-testimonials__heading h2 {
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.mentorship-testimonials__heading > p {
  margin-top: 0.35rem;
  margin-left: 2rem;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  line-height: 1;
  transform: rotate(-2deg);
}

.mentorship-testimonials__viewport {
  overflow: hidden;
  margin-top: clamp(3.25rem, 6vw, 4.8rem);
}

.mentorship-testimonials__track {
  width: max-content;
  display: flex;
  animation: mentorship-testimonials-scroll 44s linear infinite;
}

.mentorship-testimonials__viewport:hover .mentorship-testimonials__track { animation-play-state: paused; }

.mentorship-testimonials__set { display: flex; gap: 1.75rem; padding-right: 1.75rem; }

.mentorship-quote {
  width: min(22rem, calc(100vw - 3rem));
  min-height: 31.5rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--mentorship-brown);
  border-radius: 0.85rem;
  background: var(--mentorship-yellow);
  padding: 2rem 1.65rem 1.4rem;
  color: var(--mentorship-brown);
}

.mentorship-quote > p {
  color: var(--mentorship-ink);
  font-size: 1rem;
  line-height: 1.48;
}

.mentorship-quote footer { display: grid; }

.mentorship-quote footer strong {
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.mentorship-quote footer > span {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.mentorship-quote footer small { font-size: 0.88rem; letter-spacing: 0; }

.mentorship-help {
  display: grid;
  min-height: 18rem;
  place-items: center;
  border-bottom: 1px solid var(--mentorship-brown);
  background: var(--mentorship-paper);
  padding: 4rem var(--tbt-gutter);
  text-align: center;
}

.mentorship-help > div { display: grid; justify-items: center; }

.mentorship-help h2 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.mentorship-help p {
  margin-top: 1.25rem;
  color: var(--mentorship-ink);
  font-size: 1.4rem;
  line-height: 1;
  transform: rotate(-1.5deg);
}

.mentorship-help .mentorship-pill { margin-top: 1.25rem; }

[data-mentorship-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 650ms ease, transform 750ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

[data-mentorship-reveal].is-visible { opacity: 1; transform: none; }

@keyframes mentorship-testimonials-scroll {
  to { transform: translateX(-50%); }
}

@media (min-width: 48rem) {
  .mentorship-intro__top {
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
    gap: clamp(5rem, 8vw, 8rem);
  }

  .mentorship-intro h1 { white-space: nowrap; }
  .mentorship-intro__copy { padding-top: 0.15rem; }

}

@media (min-width: 64rem) {
  .mentorship-intro { padding-top: 6.25rem; }
  .mentorship-intro__heading { padding-top: 1.2rem; }
  .mentorship-intro h1 { font-size: 3.55rem; }
  .mentorship-figma .mentorship-intro__visual { margin-top: 3.3rem; }
  .mentorship-offers { padding: 0.35rem 5.4rem clamp(2.5rem, 5vw, 4rem); }
  .mentorship-offers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mentorship-offer {
    border-right: 1px solid var(--mentorship-brown);
    border-bottom: 0;
  }
  .mentorship-offer:last-child { border-right: 0; }
  .mentorship-offer__intro {
    min-height: clamp(22.25rem, calc(38rem - 17.5vw), 26.25rem);
  }
  .mentorship-offer__features { min-height: 32.5rem; }
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
  body:has(main.mentorship-figma) .tbt-home-footer__main {
    grid-template-columns: minmax(13rem, 1.1fr) minmax(9rem, 0.6fr) minmax(16rem, 1fr);
    gap: 2.25rem;
  }

  body:has(main.mentorship-figma) .tbt-home-footer__cta {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 63.99rem) {
  /* `.home-figma :is(figure)` resets this margin with higher specificity, so
     the photo was glued to the intro copy below desktop. */
  .mentorship-figma .mentorship-intro__visual { margin-top: clamp(2.5rem, 8vw, 4rem); }

  /* Stacked plans: the fixed desktop heights left big empty gaps on short
     plans and glued "Book now" to the list on long ones. */
  .mentorship-offer__intro,
  .mentorship-offer__features { min-height: 0; }
  .mentorship-offer__features .mentorship-pill { margin-top: 2.25rem; }
}

/* Tablet (768-1023px): the nowrap title and the copy column overlapped. */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .mentorship-intro__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .mentorship-intro__copy { max-width: 42rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mentorship-testimonials__track { animation: none; }
  /* Without the marquee, let people swipe/scroll through the reviews instead. */
  .mentorship-testimonials__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
  }
  .mentorship-testimonials__set[aria-hidden="true"] { display: none; }
  .mentorship-quote { scroll-snap-align: start; }
  [data-mentorship-reveal] { opacity: 1; transform: none; transition: none; }
}
