/* ==========================================================================
   Firsthand Partners — Operating Advisors page  (assets/advisors.css)
   --------------------------------------------------------------------------
   Page-specific rules only. Everything generic lives in assets/site.css.
   Uses the shared tokens; never redefines :root tokens. Loaded AFTER site.css.

   Contents
     1. Hero + advisor-network mockup
     2. Company strip
     3. Capability cards (feature-card mockups)
     4. Roster grid + "Join the network" tile

   Get Started (selector cards + form panels) and the closing block are shared
   components: they live in assets/site.css (sections 14 and 15).
   ========================================================================== */


/* ==========================================================================
   1. HERO
   ========================================================================== */
.adv-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  padding-bottom: clamp(56px, 6vw, 96px);
}
.adv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(48px, 5vw, 80px);
  align-items: center;
}
.adv-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.adv-hero__title {
  margin-top: 24px;
  /* Lexend is wide: sized to the column so "in your corner" never overflows */
  font-size: clamp(2.25rem, 1.2rem + 3vw, 4.25rem);
}
.adv-hero__lead { margin-top: 24px; }
.adv-hero__cta { margin-top: 36px; }

/* --- Advisor-network node graph (decorative) ---------------------------- */
.adv-net-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}
.adv-net { padding-bottom: 8px; }

/* Shared node-graph primitives (hero + "Network sourcing" card):
   nodes are placed by % so the lines (an SVG stretched over the same box) always meet them */
.ng { position: relative; aspect-ratio: 16 / 13; }
.ng__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ng__lines line {
  stroke: var(--m-accent);
  stroke-opacity: .5;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.ng__lines .is-soft  { stroke-opacity: .26; }
.ng__lines .is-ghost { stroke-opacity: .3; stroke-dasharray: 3 5; }
.ng__lines .is-hot   { stroke-opacity: 1; stroke-width: 2; }
.ng__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
}
.ng__node > .mock__avatar { box-shadow: 0 0 0 5px var(--m-panel); position: relative; }
/* translucent tones must be opaque here, or the connector lines show through the avatar */
.ng__node > .mock__avatar--soft { background: linear-gradient(rgba(93, 91, 246, .12), rgba(93, 91, 246, .12)), var(--m-panel); }
.ng__tag {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
}
.ng__core {
  display: grid;
  place-items: center;
}
.ng__core .fp-mark { width: 60px; height: 60px; font-size: 17px; position: relative; z-index: 1; }
.ng__core::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0;
  animation: ring-pulse 2.8s ease-out infinite;
}
.ng__badge {
  position: absolute;
  right: -5px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  box-shadow: 0 0 0 2px var(--m-panel);
}
.ng__badge svg { width: 10px; height: 10px; }

.adv-float { position: absolute; z-index: 2; --mock-pad: 10px 14px 10px 10px; }
.adv-float--a { top: -20px; right: -14px; }
.adv-float--b { bottom: -22px; left: -18px; }
.adv-float .mock__lines { gap: 2px; }

@media (max-width: 900px) {
  .adv-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .adv-net-wrap { max-width: 560px; margin-inline: auto; margin-bottom: 20px; }
  .ng { aspect-ratio: 2 / 1; }
  /* floats sit fully outside the panel bar / labels once the layout is single-column */
  .adv-float--a { top: -46px; right: 8px; }
  .adv-float--b { bottom: -38px; left: 8px; }
}
@media (max-width: 600px) {
  .ng { aspect-ratio: 16 / 13.5; }
}
@media (max-width: 480px) {
  .adv-hero__cta { margin-top: 28px; }
  .adv-hero__cta .btn { flex: 1 1 100%; }
  .adv-float--a { right: 4px; }
  .ng__tag { font-size: .625rem; height: 20px; padding: 0 7px; }
}


/* ==========================================================================
   2. COMPANY STRIP
   ========================================================================== */
.adv-strip { border-block: 1px solid var(--line); }
.adv-strip .logo-strip { align-items: center; text-align: center; }
.adv-strip .logo-strip__list { justify-content: center; }
@media (min-width: 769px) {
  /* ~7 + 6 names on two centred rows instead of 11 + 2 */
  .adv-strip .logo-strip__list { max-width: 680px; column-gap: 44px; row-gap: 16px; }
}


/* ==========================================================================
   3. CAPABILITY CARDS
   ========================================================================== */
.adv-caps .feature-card__text { max-width: none; }
.adv-caps .feature-card__visual { min-width: 0; }
@media (min-width: 769px) {
  .adv-caps .feature-card__visual { min-height: 304px; }   /* the three mockups share one height */
}

/* 2-up tablet grid: the third card spans both columns as a horizontal card (no orphan) */
@media (min-width: 769px) and (max-width: 1024px) {
  .adv-caps .grid-3 > .feature-card:last-child {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
    flex-direction: row;
  }
  .adv-caps .grid-3 > .feature-card:last-child .feature-card__visual { flex: 1 1 50%; }
  .adv-caps .grid-3 > .feature-card:last-child .feature-card__body { flex: 1 1 50%; justify-content: center; padding: 24px 28px; }
}

/* 3-up cards get narrow between 1025 and ~1160px: tighten the visual padding */
@media (min-width: 1025px) and (max-width: 1160px) {
  .adv-caps .feature-card__visual { padding: 16px; }
}

/* "Network sourcing": warm-intro path (tree over the shared .ng primitives) */
.ng--path { aspect-ratio: 2 / 1; margin-top: 4px; }
.ng--path .ng__node > .mock__avatar { box-shadow: 0 0 0 4px var(--m-panel); }

/* "Talent evaluation" scorecard: keep the tick rows readable when narrow */
.adv-caps .mock__check { align-items: flex-start; }
.adv-caps .mock__check::before { margin-top: 1px; }


/* ==========================================================================
   4. ROSTER
   Photos are square 800/512px sources shown in the shared 4:5 person-card crop.
   ========================================================================== */
/* 23 people + the join tile on the shared .grid-5 ladder (5 -> 4 -> 3 -> 2): the tile spans 2 columns
   at 5-up and 1 below, so every row fills at every width. */
.roster .person-card__body { padding-bottom: 10px; }

/* The last tile: "and more" -> "Join the network" (23 people + this tile = 25 cells on a 5-col grid) */
.roster__join {
  gap: 8px;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(93, 91, 246, .06), rgba(93, 91, 246, .02));
}
.roster__join .person-card__plus {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(93, 91, 246, .1);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.roster__join:hover .person-card__plus { background: var(--violet); color: #fff; }
.roster__join-kicker {
  color: var(--violet-ink);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.roster__join-title {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.roster__join-text {
  max-width: 30ch;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: balance;
}
.roster__join-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 10px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  box-shadow: var(--shadow-violet);
  transition: background-color var(--dur-2) var(--ease);
}
.roster__join-cta::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform var(--dur-2) var(--ease-out);
}
.roster__join:hover .roster__join-cta { background: var(--violet-deep); }
.roster__join:hover .roster__join-cta::after { transform: translateX(3px); }

@media (min-width: 1180px) {
  .roster__join { grid-column: span 2; }
}
@media (max-width: 1179px) {
  .roster__join { padding: 20px 16px; }
}
@media (max-width: 768px) {
  .roster__join { gap: 6px; padding: 16px 10px; }
  .roster__join-text { display: none; }
  .roster__join-title { font-size: 1.0625rem; }
  .roster__join-cta { height: 36px; padding: 0 14px; font-size: .8125rem; }
}
@media (max-width: 480px) {
  .roster__join-cta { padding: 0 14px; }
  .roster__join-cta::after { display: none; }
}

/* Print: the filled CTA would vanish without background graphics */
@media print {
  .roster__join { background: none; }
  .roster__join-cta { background: none; color: #4746cb; border: 1px solid #4746cb; box-shadow: none; }
  .adv-float { display: none; }
}

/* Network sourcing uses the same moving advisor-network as the home page.
   Talent evaluation is a generic score, not a portrait. */
.scene-eval { position: relative; overflow: hidden; }
.scene-eval__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(165, 164, 255, .14), transparent);
  animation: eval-scan 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes eval-scan {
  0% { top: -40%; }
  100% { top: 110%; }
}
.scene-eval .mock__check:not(.mock__check--off) {
  animation: check-arrive 5.6s var(--ease-out) infinite both;
}
.scene-eval .mock__check:nth-child(2) { animation-delay: .35s; }
.scene-eval .mock__check:nth-child(3) { animation-delay: .7s; }
.scene-eval .mock__check--off { opacity: .55; }
@keyframes check-arrive {
  0%, 8%    { opacity: 0; transform: translateX(-6px); }
  18%, 84%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}

.netmap {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
}
.netmap svg { width: 100%; max-width: 420px; height: auto; max-height: 200px; overflow: visible; }
.netmap__edges path { stroke: rgba(255, 255, 255, .17); stroke-width: 1.2; }
.netmap__edges .netmap__mesh {
  stroke: rgba(255, 255, 255, .1);
  stroke-dasharray: 2 6;
  animation: netmap-dash 8s linear infinite;
}
.netmap__edges .netmap__hot {
  stroke: var(--violet-soft);
  stroke-width: 1.8;
  stroke-dasharray: 5 7;
  animation: netmap-dash 1.5s linear infinite;
}
.netmap__edges .netmap__hot--alt {
  stroke: rgba(255, 255, 255, .55);
  animation-duration: 2.2s;
  animation-direction: reverse;
}
.netmap__nodes circle {
  fill: #1e1e3a;
  stroke: rgba(255, 255, 255, .32);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-breathe 3.4s ease-in-out infinite;
}
.netmap__nodes circle:nth-child(2) { animation-delay: .3s; }
.netmap__nodes circle:nth-child(3) { animation-delay: .6s; }
.netmap__nodes circle:nth-child(4) { animation-delay: .9s; }
.netmap__nodes circle:nth-child(5) { animation-delay: 1.2s; }
.netmap__nodes .netmap__node--hot {
  fill: var(--violet-soft);
  stroke: rgba(165, 164, 255, .45);
  stroke-width: 4;
  animation: node-hot 2.2s ease-in-out infinite;
}
@keyframes node-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes node-hot {
  0%, 100% { stroke-width: 3; }
  50% { stroke-width: 6; }
}
.netmap__packet--soft { opacity: .75; }
.netmap__tick { stroke: #14142b; stroke-width: 2; }
.netmap__ring {
  fill: rgba(93, 91, 246, .2);
  stroke: rgba(165, 164, 255, .55);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-pulse 2.6s ease-out infinite;
}
.netmap__core { fill: var(--violet); stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.netmap__label { fill: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
@keyframes netmap-dash { to { stroke-dashoffset: -28; } }

/* Strategic advisory: operator moves into the current stage and works its problems. No faces. */
.scene-stage { display: flex; flex-direction: column; gap: 14px; }
.scene-stage__rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 6px 4px 2px;
  padding-top: 18px;
}
.scene-stage__line,
.scene-stage__fill {
  position: absolute;
  top: 21px;
  left: 16.67%;
  height: 2px;
  border-radius: 2px;
}
.scene-stage__line { right: 16.67%; background: rgba(255, 255, 255, .16); }
.scene-stage__fill {
  width: 0;
  background: #a5a4ff;
  animation: stage-fill 6.4s var(--ease-out) infinite;
}
.scene-stage__dot {
  position: absolute;
  top: 16px;
  left: 16.67%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(93, 91, 246, .35);
  animation: stage-travel 6.4s var(--ease-out) infinite;
}
.scene-stage__stop {
  position: relative;
  padding-top: 14px;
  text-align: center;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.scene-stage__stop::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #1e1e3a;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
}
.scene-stage__stop.is-now { color: #fff; }
.scene-stage__stop.is-now::before {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(93, 91, 246, .28);
  animation: stage-glow 2.2s ease-in-out infinite;
}
.scene-stage .mock__check:not(.mock__check--off) {
  animation: stage-check 6.4s var(--ease-out) infinite both;
}
.scene-stage .mock__check:nth-child(2) { animation-delay: .28s; }
.scene-stage .mock__check--off {
  animation: stage-check-off 6.4s var(--ease-out) infinite both;
  animation-delay: .55s;
}
@keyframes stage-fill {
  0%, 8%   { width: 0; opacity: 1; }
  30%      { width: 33.33%; }
  52%, 88% { width: 66.66%; opacity: 1; }
  100%     { width: 66.66%; opacity: 0; }
}
@keyframes stage-travel {
  0%, 8%   { left: 16.67%; opacity: 1; }
  30%      { left: 50%; }
  52%, 88% { left: 83.33%; opacity: 1; }
  100%     { left: 83.33%; opacity: 0; }
}
@keyframes stage-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(93, 91, 246, .22); }
  50%      { box-shadow: 0 0 0 6px rgba(93, 91, 246, .08); }
}
@keyframes stage-check {
  0%       { opacity: 0; transform: translateX(-6px); }
  16%, 100%{ opacity: 1; transform: none; }
}
@keyframes stage-check-off {
  0%, 10%  { opacity: 0; }
  24%, 100%{ opacity: .55; }
}

/* Talent evaluation — two still patterns, one match, rubric left empty */
.embed__head { justify-content: space-between; }
.scene-pattern { display: flex; flex-direction: column; gap: 16px; }
.scene-pattern .embed__head { flex-wrap: wrap; row-gap: 8px; }
.scene-pattern .mock__label { letter-spacing: .04em; white-space: nowrap; }
.pattern {
  --pattern-gap: 32px;
  --pattern-gem: 64px;
  --pattern-pad: 12px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pattern-gap);
  align-items: stretch;
}
.pattern__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: var(--pattern-pad) 4px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}
.pattern__mark {
  width: var(--pattern-gem);
  height: var(--pattern-gem);
  color: #d4d3ff;
  overflow: visible;
}
.pattern__shape { fill: rgba(212, 211, 255, .1); stroke: currentColor; stroke-width: 1.5; }
.pattern__cross {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-dasharray: 3 5;
  opacity: .75;
  animation: netmap-dash 1.6s linear infinite;
}
.pattern__node, .pattern__core {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  animation: pattern-node 2.4s ease-in-out infinite;
}
.pattern__mark .pattern__node:nth-child(3) { animation-delay: 0s; }
.pattern__mark .pattern__node:nth-child(4) { animation-delay: .18s; }
.pattern__mark .pattern__node:nth-child(5) { animation-delay: .36s; }
.pattern__mark .pattern__node:nth-child(6) { animation-delay: .54s; }
.pattern__mark .pattern__core { animation-delay: .28s; }
.pattern__mark--echo .pattern__node:nth-child(3) { animation-delay: .7s; }
.pattern__mark--echo .pattern__node:nth-child(4) { animation-delay: .88s; }
.pattern__mark--echo .pattern__node:nth-child(5) { animation-delay: 1.06s; }
.pattern__mark--echo .pattern__node:nth-child(6) { animation-delay: 1.24s; }
.pattern__mark--echo .pattern__core { animation-delay: .98s; }
@keyframes pattern-node {
  0%, 100% { opacity: .38; }
  42% { opacity: 1; }
}
.pattern__name {
  color: var(--m-text);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-align: center;
}
.pattern__bridge {
  position: absolute;
  z-index: 1;
  top: calc(1px + var(--pattern-pad) + var(--pattern-gem) / 2);
  left: calc((100% - var(--pattern-gap)) / 4 + var(--pattern-gem) / 2 - var(--pattern-gem) * .182);
  right: calc((100% - var(--pattern-gap)) / 4 + var(--pattern-gem) / 2 - var(--pattern-gem) * .182);
  height: 1.5px;
  background: rgba(212, 211, 255, .8);
}
.pattern__bridge i {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pattern-run 2.8s linear infinite;
}
@keyframes pattern-run {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}
.pattern__ok {
  position: absolute;
  z-index: 2;
  top: calc(1px + var(--pattern-pad) + var(--pattern-gem) / 2);
  left: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #d4d3ff;
  box-shadow: 0 0 0 4px var(--m-panel);
  animation: pattern-pop 2.8s ease-in-out infinite;
}
@keyframes pattern-pop {
  0%, 62% { transform: scale(1); }
  76% { transform: scale(1.12); }
  90%, 100% { transform: scale(1); }
}
.pattern__ok svg { width: 12px; height: 12px; }
.pattern__ok path { fill: none; stroke: #14142b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pattern__rubric {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--m-line);
}
@media (prefers-reduced-motion: reduce) {
  .scene-eval__scan,
  .scene-eval .mock__check,
  .scene-stage__fill,
  .scene-stage__dot,
  .scene-stage__stop.is-now::before,
  .scene-stage .mock__check,
  .pattern__node,
  .pattern__core,
  .pattern__cross,
  .pattern__ok,
  .pattern__bridge i,
  .netmap__edges .netmap__mesh,
  .netmap__edges .netmap__hot,
  .netmap__nodes circle,
  .netmap__ring { animation: none !important; }
  .scene-eval .mock__check,
  .scene-stage .mock__check,
  .pattern__node,
  .pattern__core,
  .pattern__ok { opacity: 1; transform: none; }
  .pattern__packet,
  .pattern__bridge i { display: none; }
  .scene-stage .mock__check--off { opacity: .55; }
  .scene-stage__fill { width: 66.66%; opacity: 1; }
  .scene-stage__dot { left: 83.33%; opacity: 1; }
  .netmap__packet { display: none; }
}
