/* Team / About page — isolated styles */

.team-page {
  --team-navy: #0b1739;
  --team-blue: #215de7;
  --team-cyan: #06a6c9;
  --team-ink: #101b36;
  --team-line: rgba(20, 44, 91, 0.12);
  background: #f8fafc;
}

.team-about-page #navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 10000;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff;
  color: #123b93;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: translateY(0); }

.team-page .container {
  max-width: 1180px;
}

.team-page section {
  scroll-margin-top: 96px;
}

.team-hero {
  overflow: hidden;
  padding: clamp(126px, 13vw, 166px) 0 clamp(72px, 9vw, 108px);
  background:
    radial-gradient(circle at 82% 22%, rgba(37, 99, 235, 0.14), transparent 29%),
    radial-gradient(circle at 18% 84%, rgba(6, 166, 201, 0.1), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
}

.team-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  top: 40px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(37, 99, 235, 0.035), 0 0 0 144px rgba(37, 99, 235, 0.02);
  pointer-events: none;
}

.team-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}

.team-eyebrow {
  margin: 0 0 13px;
  color: var(--team-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-word-reveal {
  max-width: 760px;
  margin: 0;
  color: var(--team-ink);
  font-size: clamp(2.75rem, 5.8vw, 5.25rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.team-word-reveal > span {
  display: inline-block;
  margin-right: 0.08em;
  opacity: 0;
  transform: translateY(0.36em);
  animation: teamWordIn 0.64s cubic-bezier(0.2, 0.75, 0.24, 1) forwards;
}

.team-word-reveal > span:nth-child(2) { animation-delay: 70ms; }
.team-word-reveal > span:nth-child(3) { animation-delay: 140ms; }
.team-word-reveal > span:nth-child(4) { animation-delay: 210ms; }
.team-word-reveal > span:nth-child(5) { animation-delay: 280ms; }

.team-gradient-word {
  background: linear-gradient(110deg, var(--team-blue), #6d4de8 58%, var(--team-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@keyframes teamWordIn {
  to { opacity: 1; transform: translateY(0); }
}

.team-hero-lede {
  max-width: 690px;
  margin: 25px 0 0;
  color: #46536d;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.team-hero-actions,
.team-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.team-page .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  color: #647089;
  font-size: 0.76rem;
}

.team-hero-note span {
  color: #16a06a;
  font-size: 0.72rem;
}

.team-problem-card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(20, 45, 101, 0.13);
  backdrop-filter: blur(12px);
}

.team-problem-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.05), rgba(6, 166, 201, 0.03));
}

.team-problem-top,
.team-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-problem-top {
  margin-bottom: 22px;
  color: #34415b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-live-pill {
  padding: 5px 9px;
  border-radius: 99px;
  background: #eef3ff;
  color: var(--team-blue);
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: none;
}

.team-role-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--team-line);
  border-radius: 18px;
  background: #fff;
}

.team-role-row strong {
  display: block;
  color: var(--team-ink);
  font-size: 0.92rem;
}

.team-role-row p {
  margin: 3px 0 0;
  color: #637087;
  font-size: 0.78rem;
  line-height: 1.5;
}

.team-role-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eaf0ff;
  color: var(--team-blue);
  font-size: 0.9rem;
  font-weight: 900;
}

.team-role-row.cardholder .team-role-icon {
  background: #e9f9f6;
  color: #067c68;
}

.team-match-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 12px 6px;
  color: var(--team-blue);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-match-route span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35));
}

.team-match-route span:last-child { transform: scaleX(-1); }

.team-status-strip {
  flex-wrap: wrap;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--team-line);
  color: #5b6880;
  font-size: 0.67rem;
  font-weight: 700;
}

.team-status-strip span { display: flex; align-items: center; gap: 5px; }
.team-status-strip i { width: 6px; height: 6px; border-radius: 50%; background: #19a673; }

.team-story,
.team-purpose,
.team-roadmap,
.team-people,
.team-cta {
  padding: clamp(70px, 8vw, 104px) 0;
}

.team-story { background: #fff; }
.team-purpose { background: #f2f6fc; }
.team-roadmap { background: var(--team-navy); color: #fff; }
.team-people { background: #fff; }
.team-cta { padding-top: 22px; background: #fff; }

.team-section-heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.team-section-heading h2,
.team-roadmap-intro h2,
.team-cta-shell h2 {
  margin: 0;
  color: var(--team-ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.team-section-heading > p:last-child,
.team-roadmap-intro > p:last-child,
.team-cta-shell > div > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: #59667e;
  font-size: 0.98rem;
  line-height: 1.75;
}

.team-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.team-process-track {
  position: absolute;
  top: 23px;
  left: 7%;
  right: 7%;
  height: 2px;
  overflow: hidden;
  background: #dbe3f2;
}

.team-motion .team-process-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--team-blue), #6b4fe3, var(--team-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.team-process-track span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--team-blue), #6b4fe3, var(--team-cyan)); }
.team-motion .team-process.is-visible .team-process-track span { transform: scaleX(1); }

.team-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
}

.team-step-number {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--team-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
}

.team-step-kicker {
  margin: 2px 0 6px !important;
  color: var(--team-blue) !important;
  font-size: 0.68rem !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-process-step h3 {
  margin: 0 0 8px;
  color: var(--team-ink);
  font-size: 1rem;
}

.team-process-step p {
  margin: 0;
  color: #617087;
  font-size: 0.82rem;
  line-height: 1.65;
}

.team-safety-note {
  margin: 34px 0 0;
  padding: 17px 19px;
  border: 1px solid #f1d6a6;
  border-radius: 15px;
  background: #fffaf0;
  color: #6c5125;
  font-size: 0.8rem;
  line-height: 1.65;
}

.team-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.team-bento-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(24, 48, 92, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 44, 91, 0.05);
}

.team-bento-card--mission { grid-column: span 7; min-height: 330px; background: linear-gradient(145deg, #142a61, #173b88); color: #fff; }
.team-bento-card--vision { grid-column: span 5; min-height: 330px; background: linear-gradient(155deg, #f0ecff, #fff); }
.team-bento-card--identity { grid-column: span 4; }
.team-bento-card--community { grid-column: span 4; }
.team-bento-card--support { grid-column: span 4; background: linear-gradient(150deg, #e8fbf8, #fff); }

.team-card-label {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 6px 10px;
  border-radius: 99px;
  background: #edf2ff;
  color: var(--team-blue);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-bento-card--mission .team-card-label { background: rgba(255, 255, 255, 0.13); color: #d8e4ff; }

.team-bento-card h3 {
  margin: 24px 0 10px;
  color: var(--team-ink);
  font-size: clamp(1.22rem, 2.2vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.team-bento-card--mission h3 { max-width: 580px; color: #fff; font-size: clamp(1.65rem, 3vw, 2.45rem); }

.team-bento-card p {
  margin: 0;
  color: #627088;
  font-size: 0.83rem;
  line-height: 1.7;
}

.team-bento-card--mission p { max-width: 600px; color: #c9d6f3; }

.team-mini-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  color: #d9e5ff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-mini-steps i { width: 22px; height: 1px; background: rgba(255, 255, 255, 0.4); }

.team-bento-card--support a {
  margin-top: 16px;
  color: #067c68;
  font-size: 0.79rem;
  font-weight: 800;
}

.team-roadmap-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  align-items: start;
  gap: clamp(44px, 8vw, 100px);
}

.team-roadmap .team-eyebrow { color: #77d4e6; }
.team-roadmap-intro h2 { color: #fff; }
.team-roadmap-intro > p:last-child { color: #aebbd4; }

.team-roadmap-list { display: grid; }

.team-roadmap-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.team-roadmap-list article:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.team-roadmap-list article > span { color: #77d4e6; font-size: 0.7rem; font-weight: 900; }
.team-roadmap-list h3 { margin: 0 0 7px; color: #fff; font-size: 1.04rem; }
.team-roadmap-list p { margin: 0; color: #aebbd4; font-size: 0.82rem; line-height: 1.65; }

.team-people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.team-person {
  overflow: hidden;
  border: 1px solid var(--team-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 40, 87, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-person:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(18, 40, 87, 0.12); }

.team-person-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  background: #eaf0f7;
}

.team-person-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(9, 24, 57, 0.18));
  pointer-events: none;
}

.team-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform 0.45s ease; }
.team-person:hover .team-person-photo img { transform: scale(1.025); }

.team-person-body { padding: 23px; }
.team-person-role { margin: 0 0 6px !important; color: var(--team-blue) !important; font-size: 0.7rem !important; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.team-person h3 { margin: 0; color: var(--team-ink); font-size: 1.23rem; }
.team-person-body > p { margin: 12px 0 0; color: #637087; font-size: 0.82rem; line-height: 1.65; }

.team-person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--team-line);
}

.team-person-links a { color: #4c5a72; font-size: 0.71rem; font-weight: 750; }
.team-person-links a:hover { color: var(--team-blue); }

.team-cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding: clamp(32px, 5vw, 54px);
  border-radius: 30px;
  background: linear-gradient(135deg, #eef4ff 0%, #f0fbfa 100%);
  border: 1px solid rgba(37, 99, 235, 0.11);
}

.team-cta-shell h2 { max-width: 670px; font-size: clamp(1.8rem, 3.7vw, 3rem); }
.team-cta-actions { justify-content: flex-end; margin-top: 0; }

.team-motion .team-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.58s ease, transform 0.58s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.team-motion .team-reveal.is-visible { opacity: 1; transform: translateY(0); }
.team-bento .team-reveal:nth-child(2), .team-people-grid .team-reveal:nth-child(2) { transition-delay: 70ms; }
.team-bento .team-reveal:nth-child(3), .team-people-grid .team-reveal:nth-child(3) { transition-delay: 140ms; }
.team-bento .team-reveal:nth-child(4) { transition-delay: 210ms; }
.team-bento .team-reveal:nth-child(5) { transition-delay: 280ms; }

@media (max-width: 960px) {
  .team-hero-grid { grid-template-columns: 1fr; }
  .team-problem-card { width: min(620px, 100%); }
  .team-bento-card--mission, .team-bento-card--vision { grid-column: span 6; }
  .team-bento-card--identity, .team-bento-card--community, .team-bento-card--support { grid-column: span 4; }
  .team-roadmap-shell { grid-template-columns: 1fr; }
  .team-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-person:last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
  .team-cta-shell { grid-template-columns: 1fr; align-items: start; }
  .team-cta-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  /* Preserve the first eyebrow above the fixed navbar on narrow phones. */
  .team-hero { padding-top: calc(122px + env(safe-area-inset-top, 0px)) !important; }
  .team-word-reveal { font-size: clamp(2.55rem, 13vw, 4rem); }
  .team-process { grid-template-columns: 1fr; gap: 27px; }
  .team-process-track { top: 8px; bottom: 8px; left: 22px; right: auto; width: 2px; height: auto; }
  .team-motion .team-process-track span { transform: scaleY(0); transform-origin: top; }
  .team-motion .team-process.is-visible .team-process-track span { transform: scaleY(1); }
  .team-process-step { grid-template-columns: 46px 1fr; }
  .team-bento { grid-template-columns: 1fr; }
  .team-bento-card--mission, .team-bento-card--vision, .team-bento-card--identity, .team-bento-card--community, .team-bento-card--support { grid-column: auto; min-height: 0; }
  .team-bento-card { min-height: 250px; }
  .team-bento-card--mission { min-height: 330px; }
  .team-people-grid { grid-template-columns: 1fr; }
  .team-person:last-child { grid-column: auto; width: 100%; }
  .team-cta-shell { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .team-hero-grid { gap: 36px; }
  .team-hero-actions .btn, .team-cta-actions .btn { width: 100%; }
  .team-problem-card { padding: 18px; border-radius: 22px; }
  .team-problem-top { align-items: flex-start; }
  .team-status-strip { display: grid; gap: 9px; }
  .team-roadmap-shell { gap: 32px; }
  .team-roadmap-list article { grid-template-columns: 30px 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-word-reveal > span,
  .team-reveal,
  .team-process-track span,
  .team-person,
  .team-person-photo img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .team-process-track span { transform: scale(1) !important; }
}
