/* ═══════════════════════════════════════════════════════════════
   About page — Team + Backed by
   Layered on top of site.css (which provides tokens + nav + footer)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Section: Team ──────────────────────────────────────────── */
.team-section {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 12vw, 140px);
  isolation: isolate;
  overflow: hidden;
}
.team-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255, 107, 138, 0.10), transparent 70%),
    radial-gradient(40% 30% at 80% 30%, rgba(255, 155, 120, 0.06), transparent 70%);
}

.team-header {
  text-align: center;
  margin-bottom: clamp(64px, 9vw, 112px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.team-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 16px;
}
.team-sub {
  font-family: var(--font-ui);
  font-weight: var(--fw-regular);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.5;
  font-style: italic;
  background: var(--gradient-cherry);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin: 0;
}

.team-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(48px, 6vw, 80px);
  display: grid;
  gap: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 60px);
  justify-content: center;
}
.team-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 280px));
}
.team-grid--1 {
  grid-template-columns: minmax(0, 280px);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .team-grid--3 { grid-template-columns: repeat(2, minmax(0, 280px)); }
}
@media (max-width: 480px) {
  .team-grid--3 { grid-template-columns: minmax(0, 280px); }
}

/* ─── Card ───────────────────────────────────────────────────── */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

/* Shield silhouette — rounded top corners + smooth half-ellipse bottom.
   Bottom corners use 50%/50% so they meet at the midpoint and form a
   single continuous U-curve across the whole bottom edge. */
.tc-shield {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: 28px 28px 50% 50% / 28px 28px 50% 50%;
  background: var(--tone-grad, linear-gradient(180deg, #fde6d4 0%, #fff5ec 100%));
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.team-card:hover .tc-shield {
  transform: translateY(-4px);
}

/* Portrait anchored TOP — head touches the top edge of the shield,
   the curved bottom crops the torso naturally. object-fit:contain
   preserves the original proportions of the transparent PNG. */
.tc-photo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.tc-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 0 8px;
}
.tc-name {
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--grey-100);
  margin: 0;
  letter-spacing: -0.01em;
}
.tc-role {
  font-family: var(--font-ui);
  font-weight: var(--fw-regular);
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--subtext);
  margin: 0;
  line-height: 1.4;
}
.tc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: #FF7979;
  transition: opacity var(--duration-fast), transform var(--duration-fast) var(--ease-spring);
}
.tc-link svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #FF7979;
}
.tc-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* Pastel tone variants — light washed-out gradients matching reference. */
.team-card[data-tone="sky"]    { --tone-grad: linear-gradient(180deg, #dceaf6 0%, #f5f9fc 100%); }
.team-card[data-tone="azure"]  { --tone-grad: linear-gradient(180deg, #d8e2f1 0%, #eef2fa 100%); }
.team-card[data-tone="peach"]  { --tone-grad: linear-gradient(180deg, #ffe7c8 0%, #fff8ee 100%); }
.team-card[data-tone="cream"]  { --tone-grad: linear-gradient(180deg, #fbe6c5 0%, #fffdf7 100%); }

/* ─── Section: Backed by ─────────────────────────────────────── */
.backed {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 120px);
  isolation: isolate;
}

/* Title sits OUTSIDE the card, centered, in white */
.backed-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: #ffffff;
  margin: 0 0 clamp(40px, 5vw, 64px);
  text-align: center;
}

/* Cream rounded card — holds only the logo + marquee strip.
   No padding-bottom: the marquee fills the bottom flush. */
.backed-card {
  position: relative;
  margin: 0 auto;
  max-width: 1180px;
  border-radius: clamp(24px, 2.4vw, 32px);
  background: linear-gradient(180deg, #fbe9ec 0%, #fce4e7 100%);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}

.backed-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 8vw, 112px) clamp(24px, 4vw, 64px) clamp(64px, 8vw, 112px);
}
/* Faint world-map watermark behind the SPC logo.
   The source JPG is a light-grey map on a near-white field, so we
   multiply it onto the cream/pink card: the white field disappears
   and only the map silhouette gently darkens the gradient. */
.backed-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  /* PNG was re-processed from the source JPG (which had only 5 levels
     of luminance) into an alpha-channel asset: continents are an opaque
     mid-grey, the surrounding field is fully transparent. So a plain
     composite over the pink card reads cleanly without blend tricks. */
  background-image: url("bg_investor_spc.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.backed-logo {
  position: relative;
  z-index: 1;
  display: block;
  height: clamp(96px, 12vw, 156px);   /* bigger per request */
  width: auto;
  max-width: 100%;
}

/* ─── Marquee strip — flush bottom of the cream card ────────── */
.marquee {
  position: relative;
  /* No own border-radius \u2014 parent card's overflow:hidden + radius
     clips the bottom corners. This eliminates the gap where the
     cream card's rounded corner showed through past the marquee's
     own (slightly mismatched) radius. */
  background: #1a0303;       /* solid deep cherry, no gradient bleed */
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Override site.css's generic .marquee edge-fade mask. */
  mask-image: none;
  -webkit-mask-image: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-drift 70s linear infinite;
  will-change: transform;
}
.marquee-row {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
}
.m-item {
  font-family: var(--font-ui);
  font-weight: var(--fw-regular);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--grey-300);
  white-space: nowrap;
}
.m-dot {
  color: #ff9b78;
  font-size: 14px;
  line-height: 1;
}
@keyframes marquee-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE LAYER — about page
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .team-section {
    padding: clamp(96px, 14vw, 140px) 0 clamp(56px, 9vw, 96px);
  }
  .team-header { margin-bottom: clamp(40px, 8vw, 72px); }
  .team-title  { font-size: clamp(40px, 7vw, 60px); }
  .team-sub    { font-size: clamp(15px, 2.4vw, 18px); }

  .backed { padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 9vw, 96px); }
}

@media (max-width: 480px) {
  .team-section { padding: 88px 0 48px; }
  .team-header  { margin-bottom: 32px; }
  .team-title   { font-size: clamp(34px, 9vw, 44px); }
  .team-sub     { font-size: 14px; max-width: 30ch; margin: 8px auto 0; }

  .team-grid {
    gap: 20px;
    margin-bottom: 20px;
  }
  .tc-name { font-size: 17px; }
  .tc-role { font-size: 13px; }

  .backed { padding: 40px 0 56px; }
  .backed-title { font-size: clamp(32px, 9vw, 44px); }
  .backed-card {
    border-radius: 24px;
  }
  .backed-logo-wrap {
    padding: 40px 24px 40px;
  }
  .backed-logo { height: 72px; }
  .marquee { height: 44px; }
  .m-item  { font-size: 12px; }
  .marquee-row { gap: 24px; padding-right: 24px; }
}
