/* Generative Trading — final Team page */
.team-page {
  overflow: hidden;
  background: #041619;
  color: var(--paper);
}

.team-page main {
  position: relative;
}

.team-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(760px, 92svh);
  overflow: hidden;
  padding: 158px 0 105px;
  background-image:
    linear-gradient(90deg, rgba(2, 12, 15, .98) 0%, rgba(2, 12, 15, .9) 34%, rgba(2, 12, 15, .4) 63%, rgba(2, 12, 15, .7) 100%),
    linear-gradient(0deg, rgba(3, 15, 17, .92), transparent 54%),
    var(--team-banner);
  background-position: center;
  background-size: cover;
}

.team-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 79% 32%, rgba(40, 161, 171, .16), transparent 19%), linear-gradient(180deg, rgba(2, 12, 15, .34), transparent 28%);
}

.team-hero-content {
  max-width: 860px;
}

.team-hero .eyebrow,
.team-section-heading .eyebrow {
  color: var(--teal-bright);
}

.team-hero h1 {
  max-width: 790px;
  margin: 16px 0 25px;
  font-size: clamp(52px, 7.15vw, 108px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}

.team-hero h1 em,
.team-section h2 em {
  color: var(--gold-soft);
  font-style: normal;
  font-weight: 400;
}

.team-hero-content > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0;
  color: rgba(237, 242, 238, .74);
  font-size: 18px;
  line-height: 1.7;
}

.team-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 132px 0;
}

.team-section-heading {
  display: block;
  max-width: 860px;
  margin-bottom: 58px;
}

.team-section-heading .eyebrow {
  margin-bottom: 14px;
}

.team-section-heading h2 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(39px, 4.65vw, 74px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.team-ambient-field {
  position: absolute;
  z-index: -1;
  top: -25vw;
  right: -24vw;
  width: 54vw;
  aspect-ratio: 1;
  border: 1px solid rgba(138, 219, 224, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(138, 219, 224, .012), 0 0 160px rgba(18, 126, 137, .12);
}

.team-story {
  background: linear-gradient(154deg, #07282d 0%, #051b20 68%, #041518 100%);
}

.team-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, .8fr);
  gap: clamp(48px, 8vw, 142px);
  align-items: start;
}

.team-story-copy {
  max-width: 660px;
  margin: 0;
  color: rgba(237, 242, 238, .75);
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.74;
}

.team-milestones {
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(172, 213, 209, .18);
  list-style: none;
}

.team-story--signal .team-story-layout {
  padding-left: clamp(18px, 6vw, 85px);
}

.team-story--signal .team-milestones::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -36px;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--teal-bright) 12%, var(--teal-bright) 82%, transparent);
  box-shadow: 0 0 18px rgba(138, 219, 224, .3);
}

.team-milestones li {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(172, 213, 209, .14);
}

.team-story--signal .team-milestones li::before {
  position: absolute;
  left: -40px;
  width: 9px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: #0a3338;
  box-shadow: 0 0 14px rgba(207, 175, 112, .44);
}

.team-milestones li > span {
  color: var(--gold-soft);
  font: 600 11px var(--font-sans);
  letter-spacing: .13em;
}

.team-milestones strong {
  font-size: 19px;
  letter-spacing: -.035em;
}

.team-milestones p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.team-values {
  background: #051519;
}

.team-manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #08242c;
}

.team-values::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle, rgba(138, 219, 224, .23) 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 70% 45%, black, transparent 54%);
  opacity: .34;
}

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

.team-value-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(138, 219, 224, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 63, 68, .62), rgba(3, 22, 25, .88));
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.team-value-card::after {
  position: absolute;
  right: -48px;
  bottom: -69px;
  width: 136px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(138, 219, 224, .15);
  border-radius: 50%;
  transition: transform .4s;
}

.team-value-card h3,
.team-value-card p {
  position: relative;
  z-index: 1;
}

.team-value-card h3 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.team-value-card p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.team-founders {
  background: linear-gradient(158deg, #061d21, #031113);
}

/* Team soft intersections: only the inner content sections are elevated. */
.team-story,
.team-manifesto,
.team-values,
.team-founders {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -64px;
  border-radius: 56px 56px 0 0;
  box-shadow: 0 -1px 0 rgba(138, 219, 224, .16), 0 -22px 56px rgba(0, 0, 0, .28), 0 -5px 18px rgba(0, 0, 0, .14);
}

.team-story {
  z-index: 2;
  padding-top: 196px;
  background: linear-gradient(154deg, #082d32 0%, #061f24 68%, #041619 100%);
}

.team-manifesto {
  z-index: 3;
  padding: 196px 0 132px;
  background: linear-gradient(154deg, #082a31 0%, #061d22 72%, #041518 100%);
}

.team-values {
  z-index: 4;
  padding-top: 196px;
  background: linear-gradient(154deg, #062126 0%, #05171b 76%, #031214 100%);
}

.team-founders {
  z-index: 5;
  padding-top: 196px;
  background: linear-gradient(158deg, #07262b 0%, #04191c 72%, #031113 100%);
}

.team-closing-cta {
  position: relative;
  z-index: 6;
}

.team-founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-founder-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-founder-card {
  position: relative;
  display: flex;
  min-height: 395px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(172, 213, 209, .16);
  border-radius: 20px;
  background: linear-gradient(142deg, rgba(10, 57, 62, .73), rgba(3, 19, 22, .91));
  transition: transform .32s cubic-bezier(.2, .7, .2, 1), border-color .32s, box-shadow .32s;
}

.team-founder-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 92% 11%, rgba(138, 219, 224, .13), transparent 30%);
  opacity: .6;
}

.team-founder-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-founder-index {
  margin: 0;
  color: var(--gold-soft);
  font: 600 9px/1.3 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-founder-index {
  min-width: 0;
  max-width: calc(100% - 70px);
  line-height: 1.45;
}

.team-monogram {
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(207, 175, 112, .48);
  border-radius: 50%;
  color: var(--gold-soft);
  font: 500 17px/1 var(--font-sans);
  letter-spacing: -.07em;
}

.team-founder-card h3,
.team-founder-name-placeholder {
  position: relative;
  z-index: 1;
  min-height: 27px;
  margin: 35px 0 7px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}

.team-founder-card .team-founder-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--teal-bright);
  font: 600 10px/1.35 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-founder-bio {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.team-founder-card blockquote {
  position: relative;
  z-index: 1;
  margin: 25px 0 0;
  color: rgba(237, 242, 238, .87);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.team-footer {
  position: relative;
}

.team-footer .footer-brand p {
  color: rgba(237, 242, 238, .42);
  font: 600 9px var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.team-footer .footer-links a {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

[data-team-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s, transform .65s cubic-bezier(.2, .65, .2, 1);
}

[data-team-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .team-value-card:hover {
    border-color: rgba(207, 175, 112, .56);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .22);
    transform: translateY(-4px);
  }

  .team-value-card:hover::after {
    transform: scale(1.15);
  }

  .team-founder-card:hover {
    border-color: rgba(207, 175, 112, .56);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .24);
    transform: translateY(-6px);
  }
}

@media (max-width: 1100px) {
  .team-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-founder-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .team-hero {
    min-height: 650px;
    padding: 130px 0 76px;
    background-position: 64% center;
  }

  .team-hero::before {
    background: linear-gradient(90deg, rgba(2, 12, 15, .96), rgba(2, 12, 15, .76) 70%, rgba(2, 12, 15, .5)), linear-gradient(0deg, rgba(3, 15, 17, .92), transparent 54%);
  }

  .team-hero h1 {
    font-size: clamp(51px, 15vw, 72px);
  }

  .team-hero-content > p:not(.eyebrow) {
    font-size: 16px;
  }


  .team-section {
    padding: 85px 0;
  }

  .team-section-heading {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 39px;
  }

  .team-section-heading .section-index {
    padding: 0;
  }

  .team-section-heading h2 {
    font-size: clamp(38px, 11vw, 55px);
  }

  .team-story-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .team-story-copy {
    font-size: 17px;
  }

  .team-milestones li {
    grid-template-columns: 55px 1fr;
  }

  .team-values-grid,
  .team-founder-grid,
  .team-founder-grid--wide {
    grid-template-columns: 1fr;
  }

  .team-value-card {
    min-height: 0;
    padding: 23px;
  }

  .team-founder-card {
    min-height: 0;
    padding: 27px;
  }

  .team-story--signal .team-story-layout {
    padding-left: 32px;
  }

  .team-story--signal .team-milestones::before {
    left: -24px;
  }

  .team-story--signal .team-milestones li::before {
    left: -28px;
  }

  .team-footer .footer-links {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-team-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .team-value-card,
  .team-founder-card {
    transition: none;
  }
}

@media (max-width: 700px) {
  .team-story,
  .team-manifesto,
  .team-values,
  .team-founders {
    margin-top: -32px;
    border-radius: 34px 34px 0 0;
    box-shadow: 0 -1px 0 rgba(138, 219, 224, .13), 0 -15px 32px rgba(0, 0, 0, .24);
  }

  .team-story,
  .team-values,
  .team-founders {
    padding-top: 117px;
  }

  .team-manifesto {
    padding: 117px 0 85px;
  }
}


/* Static quote background — supplied image, with ink overlays for readable copy. */
body[data-page="team1"] .team-manifesto {
  background-image:
    radial-gradient(circle at 68% 48%, rgba(4, 19, 27, .12) 0%, rgba(3, 16, 22, .42) 39%, rgba(2, 12, 17, .76) 100%),
    linear-gradient(90deg, rgba(2, 13, 18, .92) 0%, rgba(3, 16, 22, .72) 49%, rgba(2, 13, 18, .45) 100%),
    url("/financial-navigator/assets/backgrounds/team-quote.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body[data-page="team1"] .team-manifesto .manifesto-box { position: relative; z-index: 1; }
@media (max-width: 700px) {
  body[data-page="team1"] .team-manifesto {
    background-position: 58% center;
    background-image:
      linear-gradient(90deg, rgba(2, 13, 18, .94) 0%, rgba(3, 16, 22, .78) 67%, rgba(2, 13, 18, .68) 100%),
      url("/financial-navigator/assets/backgrounds/team-quote.webp");
  }
}


/* Mobile Team quote — allow the attached final phrase and closing quote to wrap. */
@media (max-width: 620px) {
  .team-manifesto .manifesto-quote-tail {
    display: inline;
    white-space: normal;
  }
}
