/* Sections shared by hero v1 and v3: testimonials marquee + mentors accordion.
   Relies on the page tokens: --cream, --muted, --label, --purple, --cyan, --gradient, --mono, --shadow-inset */

/* ============ TESTIMONIALS (deep-shadow UI + infinite marquee) ============ */
.t-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 112px 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(68, 204, 255, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.t-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(68, 204, 255, 0.7);
  animation: tPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes tPulse { 50% { opacity: 0.45; } }

.t-title {
  margin-top: 26px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* glowing icon chip inside the headline */
.deep-icon {
  position: relative;
  display: inline-grid;
  vertical-align: middle;
  margin: 0 0.12em;
  transform: rotate(-6deg);
}

.deep-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #EA98F9;
  opacity: 0.6;
  filter: blur(18px);
  transform: scale(0.9) translateY(6px);
}

.deep-icon span {
  position: relative;
  display: grid;
  place-items: center;
  width: 0.95em;
  height: 0.95em;
  border-radius: 16px;
  background: var(--gradient);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5) inset, 0 8px 20px rgba(234, 152, 249, 0.35);
}

.deep-icon svg { width: 58%; height: 58%; color: #000; }

.t-lead {
  margin-top: 22px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.t-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.deep-btn { position: relative; display: inline-block; }

.deep-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #D59FFF;
  opacity: 0.35;
  filter: blur(25px);
  transition: transform 0.3s ease;
}

.deep-btn:hover::before { transform: scale(1.1) translateY(4px); }

.deep-btn a {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #201E27;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.25) inset, 0 6px 19px rgba(0, 0, 0, 0.25);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.ghost-btn:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ghost-btn svg { width: 14px; height: 14px; }

.t-proof {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
}

.t-proof .divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, 0.12); }

.t-proof-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.t-avatars { display: flex; align-items: center; }

.deep-avatar { position: relative; margin-left: -10px; }
.deep-avatar:first-child { margin-left: 0; }

.deep-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000;
  opacity: 0.5;
  filter: blur(12px);
  transform: translateY(4px);
}

.deep-avatar.glow::before { background: #EA98F9; opacity: 0.6; filter: blur(18px); }

.deep-avatar img {
  position: relative;
  display: block;
  border-radius: 50%;
  border: 2px solid #000;
  object-fit: cover;
}

.deep-avatar.md img { width: 44px; height: 44px; }
.deep-avatar.lg img { width: 56px; height: 56px; }

.t-stars { display: flex; gap: 4px; }
.t-stars svg, .t-card-stars svg { width: 20px; height: 20px; color: #FFB648; fill: #FFB648; }

/* marquee */
.t-marquee {
  position: relative;
  height: 640px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.t-marquee::before,
.t-marquee::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 2;
  pointer-events: none;
}

.t-marquee::before { top: 0; background: linear-gradient(to bottom, #000, transparent); }
.t-marquee::after { bottom: 0; background: linear-gradient(to top, #000, transparent); }

.t-track {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 14px;
  animation: tScroll var(--t-dur, 110s) linear infinite;
}

.t-track--b { display: none; animation-delay: calc(var(--t-dur, 110s) / -2); }
.t-marquee:hover .t-track { animation-play-state: paused; }

/* the track holds its cards twice, so -50% is exactly one loop */
@keyframes tScroll { to { transform: translateY(-50%); } }

.t-card {
  padding: 22px;
  border-radius: 20px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-inset), 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: rotate(2.5deg);
}

.t-card:nth-child(even) { transform: rotate(-2.5deg); }

.t-card-head { display: flex; align-items: center; gap: 12px; }

.t-card-head .av { position: relative; flex-shrink: 0; }
.t-card-head .av::before {
  content: '';
  position: absolute;
  inset: 4px 0 -4px;
  border-radius: 50%;
  background: #000;
  opacity: 0.6;
  filter: blur(10px);
}
.t-card-head .av img { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.t-card-name { font-size: 15px; font-weight: 600; color: #fff; }
.t-card-role { margin-top: 2px; font-size: 12px; color: var(--label); }

.t-card-stars { margin-left: auto; display: flex; gap: 2px; }
.t-card-stars svg { width: 13px; height: 13px; }

.t-card blockquote {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dotted rgba(255, 255, 255, 0.18);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .t-section { grid-template-columns: 1fr; padding: 88px 28px; }
  .t-marquee { grid-template-columns: 1fr 1fr; height: 600px; }
  .t-track--b { display: flex; }
}

@media (max-width: 768px) {
  .t-section { padding: 72px 20px; gap: 40px; }
  .t-marquee { grid-template-columns: 1fr; height: 560px; }
  .t-marquee::before, .t-marquee::after { height: 80px; }
  .t-track--b { display: none; }
  .t-proof .divider { display: none; }
}

@media (max-width: 480px) {
  .t-section { padding: 56px 16px; }
}

/* phones / touch: keep the animated marquee, just calmer tilt and readable cards; tap pauses it */
@media (max-width: 899px), (pointer: coarse) {
  .t-marquee { height: 560px; }
  .t-card { transform: rotate(1.2deg); }
  .t-card:nth-child(even) { transform: rotate(-1.2deg); }
  .t-card blockquote { font-size: 15px; -webkit-line-clamp: 8; }
  .t-marquee:active .t-track, .t-marquee.is-paused .t-track { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .t-track { animation-duration: 600s; }
  .t-badge i { animation: none; }
}

/* ============ MENTORS (flex accordion cards) ============ */
.m-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 112px 44px 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.m-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.m-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 18px;
}

.m-title em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.m-lead { margin-top: 26px; max-width: 420px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* pill CTA with the sliding two-tone fill */
.m-cta {
  margin-top: 34px;
  display: inline-block;
  padding: 16px 40px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #44CCFF 50%, #EA98F9 50%);
  background-size: 100% 200%;
  background-position: 0 100%;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.m-cta:hover { background-position: 0 0; transform: scale(1.02); }

.m-cards { display: flex; gap: 15px; height: 560px; }

.m-card {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s ease;
}

.m-card:first-child { flex: 2.5; }
.m-card:hover { flex: 2.5; transform: translateY(-5px); }
.m-cards:hover .m-card:not(:hover) { flex: 0.8; }

.m-card img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.m-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
}

.m-card-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: #fff;
  transition: all 0.4s ease;
}

.m-card-name { font-size: 2rem; font-weight: 600; line-height: 1.05; white-space: nowrap; }
.m-card-role { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); }
.m-card-stat { text-align: right; flex-shrink: 0; }
.m-card-stat .num { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.m-card-stat .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }

.m-card-side {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 30%, transparent 50%);
  transition: opacity 0.4s ease;
}

.m-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 20px 10px;
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(to top, transparent 50%, #201E27 50%);
}

.m-card:hover .m-card-side { opacity: 0; pointer-events: none; }
.m-card:not(:hover) .m-card-content { opacity: 0; transform: translateY(10px); }
.m-card:first-child .m-card-content { opacity: 1; transform: none; }
.m-card:first-child .m-card-side { opacity: 0; }
.m-cards:hover .m-card:first-child:not(:hover) .m-card-content { opacity: 0; transform: translateY(10px); }
.m-cards:hover .m-card:first-child:not(:hover) .m-card-side { opacity: 1; }

.m-bottom { margin-top: 64px; text-align: center; }
.m-bottom h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
.m-bottom h3 span { color: var(--label); }

@media (max-width: 1200px) {
  .m-section { padding: 88px 28px 56px; }
  .m-main { grid-template-columns: 1fr; gap: 40px; }
  .m-cards { height: 460px; }
}

@media (max-width: 768px) {
  .m-section { padding: 72px 20px 48px; }
  .m-cards {
    height: 420px;
    margin: 0 -20px;
    padding: 10px 20px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .m-cards::-webkit-scrollbar { display: none; }
  .m-card,
  .m-card:first-child,
  .m-card:hover,
  .m-cards:hover .m-card,
  .m-cards:hover .m-card:not(:hover) { flex: 0 0 290px; transform: none; scroll-snap-align: center; }
  .m-card .m-card-content,
  .m-cards:hover .m-card:first-child:not(:hover) .m-card-content { opacity: 1; transform: none; }
  .m-card .m-card-side { display: none; }
  .m-card-name { font-size: 1.6rem; }
  .m-card-stat .num { font-size: 1.5rem; }
}

/* ============ LESSONS (auto-scrolling strip; hover pauses and slides the card out) ============ */
.l-section {
  padding: 96px 0 104px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.l-head {
  max-width: 1180px;
  margin: 0 auto 44px;
  padding: 0 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.l-head p { max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.l-strip {
  position: relative;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.l-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 0 11px;
  animation: lScroll 70s linear infinite;
}

.l-strip:hover .l-track,
.l-strip:focus-within .l-track { animation-play-state: paused; }

/* the track holds its cards twice, so -50% is exactly one loop */
@keyframes lScroll { to { transform: translateX(-50%); } }

.l-card {
  position: relative;
  flex: 0 0 auto;
  width: 330px;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-inset), 0 10px 30px rgba(0, 0, 0, 0.45);
  outline: none;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.l-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.45s ease;
}

.l-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
}

.l-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.l-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.l-title span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--purple); }

/* the slide-out lesson panel */
.l-more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px 18px 16px;
  background: rgba(20, 20, 20, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(234, 152, 249, 0.35);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.l-more h3 { font-size: 15px; line-height: 1.3; color: #fff; }
.l-more p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.l-meta { margin-top: 10px; display: flex; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.l-meta b { color: var(--cyan); font-weight: 500; }

.l-card:hover,
.l-card:focus {
  transform: translateY(-14px) scale(1.04);
  border-color: rgba(234, 152, 249, 0.5);
  box-shadow: var(--shadow-inset), 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(213, 159, 255, 0.25);
  z-index: 2;
}

.l-card:hover img, .l-card:focus img { transform: scale(1.06); filter: brightness(0.85); }
.l-card:hover .l-title, .l-card:focus .l-title { opacity: 0; transform: translateY(12px); }
.l-card:hover .l-more, .l-card:focus .l-more { transform: none; }

@media (max-width: 768px) {
  .l-section { padding: 72px 0 80px; }
  .l-head { padding: 0 20px; margin-bottom: 28px; }
  .l-card { width: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  .l-strip { overflow-x: auto; }
  .l-track { animation: none; }
}

/* gradient text: give descenders (y, g, ą, ę, j, p) room inside the clipped background */
.pg-title span, .mg-hl, .mg-path__cell--final h3, .m-title em, .mg-rep__stat--big b {
  padding-bottom: 0.14em; margin-bottom: -0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pg-title { line-height: 1.02; }
.pg-title span { padding-bottom: 0.16em; }
