.section--dark {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vw;
  aspect-ratio: 1;
  left: -22vw;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #3182f638, #3182f600);
}
.section--dark .eyebrow { box-shadow: inset 0 0 0 1px #ffffff2e; color: #e5e8eb; }
.section--dark .section-heading > p:last-child { color: #b0b8c1; }

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}
.team-layout .section-heading { margin-bottom: 0; }
.team-visual { width: min(74%, 330px); margin-top: clamp(8px, 2vw, 28px); }
.team-visual img { filter: drop-shadow(0 30px 40px #3182f666); }

.workflow { position: relative; display: grid; gap: 14px; padding-left: 46px; }
.workflow::before, .workflow::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  border-radius: 2px;
  background: #ffffff1f;
}
.workflow::after {
  background: linear-gradient(180deg, #7cc0ff, var(--accent));
  transform: scaleY(var(--p, 1));
  transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.workflow-step {
  position: relative;
  border-radius: var(--radius-card);
  background: #ffffff0d;
  box-shadow: inset 0 0 0 1px #ffffff14;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
  transition: background .6s, box-shadow .6s, transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s;
}
.workflow-step::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -39px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 2px #ffffff3d;
  transition: background .4s, box-shadow .4s, scale .6s cubic-bezier(.34, 1.56, .64, 1);
}
.workflow-step.is-on::before { background: var(--accent); box-shadow: 0 0 0 5px #3182f640; scale: 1.1; }
.workflow-step.is-off { opacity: .42; transform: translateX(14px); }
.workflow-step.is-on { background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff29; }
.workflow-step--report.is-on { background: linear-gradient(120deg, #2f7df4, #3b46d6); box-shadow: 0 24px 50px -20px #3182f6b3; }

.workflow-step h3 {
  margin: 6px 0 4px;
  font-size: clamp(1.15rem, 1.9vw, 1.46rem);
  letter-spacing: -.035em;
  line-height: 1.3;
  font-weight: 750;
}
.workflow-step p { color: #b0b8c1; font-size: .97rem; }
.workflow-step .workflow-meta { color: #8cc2ff; font-size: .84rem; font-weight: 700; }
.workflow-step--report.is-on p { color: #e3eeff; }

.team-details {
  margin-top: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-card);
  background: #ffffff0d;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.team-details summary {
  position: relative;
  list-style: none;
  border-radius: var(--radius-card);
  padding: 20px 52px 20px 26px;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  transition: background .25s;
}
.team-details summary::-webkit-details-marker { display: none; }
.team-details summary::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: 28px;
  top: 44%;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.team-details[open] summary::after { transform: translateY(4px) rotate(225deg); }
.team-details summary:hover { background: #ffffff0f; }

.role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 26px; gap: 0 28px; }
.role-list > div { padding: 14px 0; border-top: 1px solid #ffffff1a; }
.role-list dt { font-weight: 700; }
.role-list dt code { margin-left: 4px; color: #8cc2ff; font-size: .74rem; }
.role-list dd, .details-note { color: #b0b8c1; font-size: .93rem; }
.details-note { padding: 16px 0 20px; margin: 0 26px; border-top: 1px solid #ffffff1a; }
.details-note code { color: #8cc2ff; }

@media (prefers-reduced-motion: no-preference) {
  .team-details[open] .role-list > div { animation: fade-up .6s cubic-bezier(.2, .8, .2, 1) both; }
  .team-details[open] .role-list > div:nth-child(n+3) { animation-delay: .06s; }
  .team-details[open] .role-list > div:nth-child(n+5) { animation-delay: .12s; }
  .team-details[open] .role-list > div:nth-child(n+7) { animation-delay: .18s; }
}

@media (max-width: 700px) {
  .team-layout { grid-template-columns: 1fr; }
  .team-visual { width: 190px; margin: 12px auto 0; }
  .role-list { grid-template-columns: 1fr; margin-inline: 20px; }
  .details-note { margin-inline: 20px; }
  .team-details summary { padding-left: 20px; }
}
