/*
 * .brtr — Section 2: Social Proof
 * Scroll-highlight question text, CTA headline ("Rent the brains…"),
 * horizontal conversation cards.
 * CSS file: section-social.css | HTML: <section class="s2"> in index.html
 */

.s2 {
  position: relative;
  z-index: 1;
  padding: 200px 0 120px;
}

.s2-wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}


/* ================================================================
   SCROLL-HIGHLIGHT TEXT
   Sentences light up black or gold as user scrolls.
   JS: scroll-highlight.js with config in config.js
   ================================================================ */
.s2-scroll-text {
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  max-width: 1000px;
  padding-left: 32px;
}

.s2-scroll-text .s2-line {
  color: var(--text-4);
  transition: color 0.6s cubic-bezier(0.22,1,0.36,1);
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  filter: blur(4px);
  display: inline;
  animation: s2LineIn 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.5s + 0.5s);
}

.s2-scroll-text .s2-line.lit-black {
  color: var(--text-1);
}

.s2-scroll-text .s2-line.lit-gold {
  color: var(--copper);
}

/* Gold sentence ("Why doesn't your team?") breaks to new line */
.s2-scroll-text .s2-line[data-color="gold"] {
  display: block;
  margin-top: 24px;
}


/* ================================================================
   CTA HEADLINE ("Rent the brains behind revenue")
   Revealed by IntersectionObserver → .visible class
   ================================================================ */
.s2-cta {
  font-family: var(--heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  padding-left: 32px;
  margin-top: 160px;
}

.s2-cta__line {
  display: block;
  background: linear-gradient(135deg, #96642a 0%, #7a4e1c 25%, #a87038 50%, #6a4018 75%, #8a5828 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.s2-cta.visible .s2-cta__line {
  opacity: 1;
  transform: translateY(0);
}

.s2-cta.visible .s2-cta__line:nth-child(2) {
  transition-delay: 0.15s;
}

.s2-cta__highlight {
  display: inline-block;
  margin-top: 0.15em;
  color: var(--gold-text);
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
  border-radius: 10px;
  padding: 10px 14px 10px;
  box-shadow: var(--highlight-shadow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* ================================================================
   CONVERSATION CARDS (horizontal scroll row)
   ================================================================ */
.s2-cards-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  opacity: 0.8;
  padding-left: 34px;
  margin-top: 72px;
  margin-bottom: 24px;
}

.s2-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
}

.s2-cards::-webkit-scrollbar { display: none; }

.s2-card {
  flex: 0 0 320px;
  min-height: 280px;
  padding: 28px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-t);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transition: border-color 0.3s;
}

.s2-card:hover {
  border-color: var(--copper-border);
}

.s2-card__text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.s2-card__text em {
  font-style: normal;
  color: var(--gold-text);
  background: rgba(184,146,46,0.1);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Typing cursor for hover animation */
.s2-card__text.typing::after {
  content: '|';
  color: var(--copper);
  animation: blink 0.6s step-end infinite;
  margin-left: 1px;
}

.s2-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.s2-card__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.s2-card__ctx {
  display: block;
  font-size: 11px;
  color: var(--text-4);
  margin-top: 1px;
}

/* Card footer avatars */
.s2-msg__av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.s2-msg__av--amber  { background: var(--gold-bg);   color: #9a7a20; }
.s2-msg__av--copper { background: var(--copper-bg);  color: var(--copper-text); }
.s2-msg__av--silver { background: var(--silver-bg);  color: var(--silver-text); }


/* ================================================================
   SECTION 2B: MENTOR NETWORK
   Animated copper-gold gradient bg, glassmorphic cards, auto-marquee.
   ================================================================ */
.s2b {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
  background: linear-gradient(
    135deg,
    #1e1008 0%,
    #3a2010 18%,
    #6a3c1c 35%,
    #96642a 50%,
    #6a3c1c 65%,
    #3a2010 82%,
    #1e1008 100%
  );
  background-size: 200% 200%;
  animation: s2bGlow 10s ease infinite;
  overflow: hidden;
}

/* Ambient radial light overlays */
.s2b::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 25% 40%, rgba(192,128,80,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 70% 90% at 75% 60%, rgba(184,146,46,0.14) 0%, transparent 60%);
  pointer-events: none;
}

.s2b-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
  text-align: center;
  margin-bottom: 56px;
}

/* Heading — white on dark */
.s2b-heading {
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 10px;
}

/* .brtr — same font as nav logo, brightened gradient for dark bg */
.s2b-brand {
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f0d080 0%, #e8c060 30%, #f5e0a0 55%, #d4a840 80%, #f0d080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s2b-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Marquee container */
.s2b-cards {
  position: relative;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.s2b-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: s2bMarquee 65s linear infinite;
}

.s2b-cards:hover .s2b-track {
  animation-play-state: paused;
}

/* Card — frosted glass on dark */
.s2b-card {
  flex: 0 0 300px;
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.s2b-card:hover {
  border-color: rgba(240,208,96,0.3);
  box-shadow: 0 8px 40px rgba(184,146,46,0.2);
  transform: translateY(-4px);
}

/* Pedigree block */
.s2b-card__pedigree {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s2b-card__tier {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.s2b-card__tier--gold {
  color: #f0d060;
  text-shadow: 0 0 16px rgba(240,208,96,0.35);
}
.s2b-card__tier--copper {
  color: #e8a050;
  text-shadow: 0 0 16px rgba(232,160,80,0.35);
}
.s2b-card__tier--silver {
  color: #c8c8d0;
  text-shadow: 0 0 16px rgba(200,200,208,0.25);
}

.s2b-card__company {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}

/* Expertise tags */
.s2b-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.s2b-tag {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 4px 11px;
}

/* Mentor note */
.s2b-card__note {
  font-size: 12.5px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

/* Stats footer */
.s2b-card__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.s2b-stat {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
}

.s2b-stat__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
