/* ==========================================================================
   Advantage Capital — SI-Labs page styles (loaded after styles.css)
   ========================================================================== */

/* ---------- Hero: cooler, deeper variant of the brand gradient ---------- */
.hero-card--lab { background: linear-gradient(100deg, #061716 0%, #0b2423 30%, #191512 56%, #6d3119 82%, #b7663f 100%); }
.hero-card--lab .b-amber { opacity: .82; }
.lab-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 75% at 62% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 75% at 62% 42%, #000 0%, transparent 78%);
}
/* No pulsing lights on this page: status dots stay still */
.page-lab .live-dot::after { content: none; }

/* Hero desk: live tag and the lifecycle tracker */
.desk-tag--live { display: inline-flex; align-items: center; gap: 7px; }
.desk-tag--live .live-dot { width: 7px; height: 7px; }
.lab-cycle { margin-top: 14px; padding: 14px 12px 12px; border-radius: 16px; background: var(--sand); }
.lab-cycle-label {
  display: flex; justify-content: space-between; gap: 12px; padding: 0 2px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.lab-cycle-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 14px; }
.lab-cycle-steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 4px; height: 1px; background: var(--line-strong); }
.lab-cycle-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.lab-cycle-steps li::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 3px var(--sand);
}

/* ---------- Model families: titles line up across the row, descriptions sit at the bottom ---------- */
#models .offer-title { margin-top: 0; padding-top: clamp(56px, 6vw, 88px); }
#models .offer-foot { margin-top: auto; padding-top: 28px; }

/* ---------- Lifecycle ---------- */
#lifecycle { --phase-cols: repeat(4, minmax(0, 1fr)); }
#lifecycle .ruler { margin-top: -8px; }

/* ---------- Team ---------- */
.lab-filter {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border-radius: 999px; background: var(--sand);
}
.lab-filter button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lab-filter button:hover { background: var(--sand-2); }
.lab-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lab-filter-count { font-size: 12.5px; opacity: .62; font-variant-numeric: tabular-nums; }
.lab-filter-count:empty { display: none; }

.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.member {
  display: flex; flex-direction: column;
  min-height: 360px; padding: 24px; border-radius: var(--radius-card); background: var(--sand);
}
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-avatar {
  display: grid; place-items: center; width: 68px; height: 68px; flex: none; overflow: hidden;
  border-radius: 50%; color: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.member-avatar .icon { width: 24px; height: 24px; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar--trading { background: var(--grad-card); }
.member-avatar--engineering { background: radial-gradient(90% 90% at 80% 10%, #4f9a94 0%, rgba(79, 154, 148, 0) 60%), linear-gradient(160deg, #2a6764 0%, #0d2626 100%); }
.member-track {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border-radius: 999px; background: #fff; font-size: 12px; font-weight: 500; color: var(--ink-soft);
}
.member-track::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.member[data-track="engineering"] .member-track::before { background: var(--teal); }
.member-name {
  margin-top: auto; padding-top: 44px;
  font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 26px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em;
}
.member-role { margin-top: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.member-bio { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.member-tags li { padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--ink-soft); }

.member--cta { position: relative; justify-content: space-between; gap: 32px; background: var(--grad-ask); color: #fff; }
.member-spark { width: 24px; height: 24px; fill: #fff; stroke: none; }
.member-cta-kicker { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 236, 224, .88); }
.member-cta-title { margin-top: 10px; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.member-cta-title .dim { color: rgba(255, 220, 200, .8); }
.member--cta .btn { align-self: flex-start; }

/* ---------- Join: the four seats ---------- */
.seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seat {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
  scroll-margin-top: 120px;
  transition: border-color .3s, box-shadow .3s;
}
.seat:target { border-color: rgba(247, 165, 65, .75); box-shadow: 0 0 0 4px rgba(247, 165, 65, .2); }
.seat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.seat-kicker { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.seat .icon-disc { width: 52px; height: 52px; background: rgba(255, 255, 255, .09); }
.seat-title { margin-top: 44px; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.seat-body { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); max-width: 50ch; }
.seat-list { display: grid; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.seat-list li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--on-dark-muted); }
.seat-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.seat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: auto; padding-top: 30px; }
.seat-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; color: var(--on-dark);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, .4);
  transition: text-decoration-color .2s;
}
.seat-link:hover { text-decoration-color: currentColor; }

.seat--feature { background: var(--grad-card); border-color: transparent; }
.seat--feature .seat-kicker { color: rgba(255, 240, 230, .9); }
.seat--feature .icon-disc { background: rgba(255, 255, 255, .22); }
.seat--feature .seat-body, .seat--feature .seat-list li { color: rgba(255, 246, 240, .94); }
.seat--feature .seat-list { border-top-color: rgba(255, 255, 255, .28); }
.seat--feature .seat-list li::before { background: #fff; }
.seat--feature:target { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .seats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) and (min-width: 641px) {
  #lifecycle .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .lab-filter { display: flex; flex-wrap: nowrap; }
  .lab-filter button { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .members { grid-template-columns: 1fr; }
  .member { min-height: 0; }
  .member-name { padding-top: 32px; }
  .seat-title { margin-top: 32px; }
  .seat-actions .btn { flex: 1 1 100%; }
  .lab-cycle-steps li { font-size: 10.5px; }
}

