/* ==========================================================
   ABOUT PAGE — DS-aligned to TreeFrog Homepage / Pipeline / C-Stem
   Tokens come from assets/colors_and_type.css.
   ========================================================== */

/* ===== PILLS / CTAs ===== */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
  cursor: pointer; position: relative; overflow: hidden;
}
.pill .arrow { display: inline-block; transition: transform 280ms var(--ease-out); }
.pill:hover .arrow { transform: translateX(4px); }
.pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--frog-vif); color: var(--ink); }
.pill.outline-light { background: transparent; border-color: var(--paper); color: var(--paper); }
.pill.outline-light:hover { background: var(--paper); color: var(--ink); }
.pill.outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.pill.outline-dark:hover { background: var(--ink); color: var(--paper); }
.pill.green { background: var(--frog-vif); color: var(--ink); }
.pill.green:hover { background: var(--ink); color: var(--frog-vif); }

/* ===== OVERTITLE ===== */
.overtitle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--frog); margin-bottom: 24px;
}
.on-dark .overtitle, .overtitle.on-dark { color: var(--frog-vif); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 0 clamp(20px, 5vw, 56px);
  background: var(--ink);
  color: var(--paper);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 40%;
  opacity: 0; z-index: 0;
  transform: scale(1.0);
  animation: heroFadeIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) forwards, heroKenBurns 20s ease-in-out 1200ms infinite;
}
@keyframes heroFadeIn {
  to { opacity: 0.55; }
}
@keyframes heroKenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.10); }
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 60% at 78% 40%, rgba(8, 222, 150, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15, 46, 44, 0.55) 0%, rgba(15, 46, 44, 0.40) 40%, rgba(15, 46, 44, 0.85) 100%);
}
.hero .content {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; width: 100%;
  padding: 160px 0 96px;
}
.hero .meta-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 64px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.78;
}
.hero .crumb { display: flex; gap: 10px; align-items: center; }
.hero .crumb .sep { opacity: 0.4; }
.hero .crumb .now { color: var(--frog-vif); }
.hero .ticker { display: flex; align-items: center; gap: 10px; }
.hero .ticker .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--frog-vif); animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(8, 222, 150, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(8, 222, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 222, 150, 0); }
}
.hero .overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frog-vif);
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid var(--frog-vif);
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.022em;
  color: var(--paper);
  margin-bottom: 0;
}
.hero h1 em { font-style: italic; color: var(--frog-vif); }
.hero h1 .period { color: var(--coral); }
.hero h1 p { color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; margin: 0 !important; padding: 0 !important; }
.hero .scroll-cue {
  position: absolute; bottom: 32px; right: clamp(20px, 5vw, 56px); z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--paper); opacity: 0.78;
  display: flex; align-items: center; gap: 14px;
  writing-mode: vertical-rl;
}
.hero .scroll-cue .line {
  width: 1px; height: 28px; background: var(--frog-vif);
  animation: scrollLineH 2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scrollLineH {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* split-line reveal */
.split-line { display: block; overflow: hidden; }
.split-line .inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.loaded .split-line .inner { transform: translateY(0); }

/* ===== INTRO TEXT BLOCK ===== */
.intro {
  background: var(--paper);
  padding: 180px clamp(20px, 5vw, 56px);
  position: relative;
}
.intro .wrap {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}
.intro .lead .num {
  font-family: var(--font-display); font-style: italic;
  font-size: 80px; line-height: 1;
  color: var(--frog-vif); opacity: 0.5;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.intro .body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 4.8vw, 76px);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 48px;
  text-wrap: balance;
}
.intro .body h2 p { color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; margin: 0 !important; padding: 0 !important; }
.intro .body h2 em { font-style: italic; color: var(--frog); }
.intro .body h2 .mark { color: var(--frog-vif); font-style: italic; }
.intro .body .text-content p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink); opacity: 0.86;
  max-width: 640px;
  text-wrap: pretty;
}
.intro .body .text-content p + p { margin-top: 20px; }
.intro .body .pull {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.35; letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 40px; padding-top: 32px;
  border-top: 0.5px solid var(--ink-12);
  max-width: 640px;
  text-wrap: balance;
}
.intro .body .pull p { color: inherit; font-size: inherit; font-family: inherit; font-style: inherit; line-height: inherit; letter-spacing: inherit; margin: 0 !important; padding: 0 !important; }
.intro .body .pull em { color: var(--frog); }

/* ===== TEAM SECTIONS ===== */
.team {
  padding: 160px clamp(20px, 5vw, 56px);
}
.team.dark { background: var(--frog-deep); color: var(--paper); }
.team.light { background: var(--paper); color: var(--ink); }
.team.ink { background: var(--ink); color: var(--paper); }
.team .head {
  max-width: 1320px; margin: 0 auto 88px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end;
}
.team .head .lead .overtitle { display: inline-flex; }
.team.light .head .lead .overtitle { color: var(--frog); }
.team.dark .head .lead .overtitle,
.team.ink .head .lead .overtitle { color: var(--frog-vif); }

.team h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.96; letter-spacing: -0.02em;
  text-wrap: balance;
}
.team h2 em { font-style: italic; }
.team.light h2 em { color: var(--frog); }
.team.dark h2 em, .team.ink h2 em { color: var(--frog-vif); }
.team h2 p { color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; margin: 0 !important; padding: 0 !important; }

.team .head-note {
  font-size: 14px; line-height: 1.55;
  opacity: 0.6;
  max-width: 380px; padding-bottom: 12px;
  padding-top: 24px;
  border-top: 0.5px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.team.dark .head-note, .team.ink .head-note { border-color: rgba(8,222,150,0.24); color: var(--frog-vif); opacity: 0.78; }
.team.light .head-note { border-color: var(--ink-12); color: var(--frog); opacity: 0.78; }

.team-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 24px;
}
.team-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.team-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.person {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: transform 380ms var(--ease-out);
}
.person:hover { transform: translateY(-6px); }
.person .photo {
  aspect-ratio: 4/5;
  background: rgba(8, 222, 150, 0.06);
  border: 0.5px solid currentColor;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.team.dark .person .photo,
.team.ink .person .photo {
  background: rgba(8, 222, 150, 0.06);
  border-color: rgba(8, 222, 150, 0.20);
}
.team.light .person .photo {
  background: rgba(25, 65, 57, 0.04);
  border-color: var(--ink-12);
}
.person .photo .ph-mark {
  position: absolute; bottom: 14px; left: 0; right: 0;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
  text-align: center;
}
.person .photo .initials {
  font-family: var(--font-display); font-style: italic;
  font-size: 64px;
  opacity: 0.3;
  transition: opacity 320ms;
}
.person:hover .photo .initials { opacity: 0.55; }
.person .photo::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(8,222,150,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 320ms;
}
.person:hover .photo::after { opacity: 1; }
.person .photo .li {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0.5px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; font-style: italic;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 320ms, transform 320ms, background 240ms, color 240ms;
  text-decoration: none;
  z-index: 2;
}
.person:hover .photo .li { opacity: 1; transform: translateY(0); }
.person .photo .li:hover { background: var(--frog-vif); color: var(--ink); border-color: var(--frog-vif); }
.person .meta .deg {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  opacity: 0.7;
  margin-bottom: 6px;
}
.team.dark .person .meta .deg,
.team.ink .person .meta .deg { color: var(--frog-vif); opacity: 0.9; }
.team.light .person .meta .deg { color: var(--frog); opacity: 0.78; }
.person .meta h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.person .meta .role {
  font-size: 13px; line-height: 1.4;
  opacity: 0.78;
}

/* ===== PARTNERS SECTION ===== */
.partners {
  background: var(--paper);
  padding: 160px clamp(20px, 5vw, 56px);
}
.partners .head {
  max-width: 1320px; margin: 0 auto 88px;
}
.partners h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.96; letter-spacing: -0.02em;
  color: var(--ink); max-width: 14ch;
  text-wrap: balance;
}
.partners h2 em { font-style: italic; color: var(--frog); }
.partners h2 p { color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; margin: 0 !important; padding: 0 !important; }
.partners-list {
  max-width: 1320px; margin: 0 auto;
  border-top: 1px solid var(--ink);
}
.partners-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 0.5px solid var(--ink-12);
  align-items: start;
  transition: background 320ms ease, padding 320ms ease;
}
.partners-row:hover { background: rgba(8,222,150,0.03); padding-left: 24px; padding-right: 24px; }
.partners-row .key {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
  color: var(--ink);
}
.partners-row .key p { color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; margin: 0 !important; padding: 0 !important; }
.partners-row .key em { font-style: italic; color: var(--frog); }
.partners-row .logos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.partners-row .logo-item {
  padding: 28px 32px;
  background: var(--paper);
  border: 0.5px solid var(--ink-12);
  border-radius: 4px;
  transition: opacity 320ms, border-color 320ms;
  display: flex; align-items: center; justify-content: center;
}
.partners-row .logo-item:hover {
  border-color: var(--frog);
}
.partners-row .logo-item img {
  max-height: 160px; width: auto; max-width: 100%;
  object-fit: contain;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1)  { transition-delay: 0ms;   }
.reveal-stagger.in > *:nth-child(2)  { transition-delay: 60ms;  }
.reveal-stagger.in > *:nth-child(3)  { transition-delay: 120ms; }
.reveal-stagger.in > *:nth-child(4)  { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(5)  { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(6)  { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(7)  { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(8)  { transition-delay: 420ms; }
.reveal-stagger.in > *:nth-child(9)  { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 540ms; }
.reveal-stagger.in > *:nth-child(11) { transition-delay: 600ms; }
.reveal-stagger.in > *:nth-child(12) { transition-delay: 660ms; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .intro .wrap { grid-template-columns: 1fr; gap: 40px; }
  .team .head { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .partners-row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .team-grid, .team-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .person .meta h4 { font-size: 18px; }
  .partners-row .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partners-row .logo-item { padding: 18px 16px; }
  .partners-row .logo-item img { max-height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
