/* /team — org chart of AI roles. Uses site.css tokens. */
:root { --audit: #6d4fc2; --audit-soft: #eee8fb; --off: #eef3f1; --off-ink: #7d918c; }
@media (prefers-color-scheme: dark) { :root { --audit: #b39cf5; --audit-soft: #1e1833; --off: #0a1816; --off-ink: #5f7c75; } }

.tm-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tm-stats b { color: var(--ink); }
.tm-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pulse); margin-right: 6px; vertical-align: 1px; animation: tm-pulse 2s infinite; }
@keyframes tm-pulse { 0% { box-shadow: 0 0 0 0 var(--pulse); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .tm-pulse { animation: none; } }

.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tm-chip { font: inherit; font-size: .88rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tm-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.tm-top { display: grid; justify-items: center; }
.tm-stem { display: block; width: 2px; height: 26px; background: var(--line); }
.tm-founder { width: min(420px, 100%); text-align: center; border: 2px solid var(--ink); padding: 20px; }
.tm-founder .eyebrow { margin: 0 0 4px; }
.tm-name { font-size: 1.6rem; margin: 0 0 .3em; }
.tm-founder p:last-child { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tm-ceo { width: min(420px, 100%); }

.tm-divisions { display: grid; grid-template-columns: 1fr; gap: 34px 20px; }
@media (min-width: 600px) { .tm-divisions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tm-divisions { grid-template-columns: repeat(3, 1fr); } }
.tm-division { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding-top: 14px; border-top: 2px solid var(--line); }
.tm-division::before { content: ""; position: absolute; top: -12px; left: 50%; width: 2px; height: 12px; background: var(--line); }
.tm-division[hidden] { display: none; }
.tm-dname { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-align: center; margin: 0; }
.tm-reports { display: grid; gap: 10px; margin-left: 12px; padding-left: 14px; border-left: 2px solid var(--line); }

.tm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; display: grid; gap: 6px; min-width: 0; }
.tm-lead { border-color: var(--brand); }
.tm-role { font-size: 1rem; margin: 0; letter-spacing: 0; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: .78rem; color: var(--ink-2); }
.tm-tag { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); }
.tm-quote { margin: 2px 0 0; padding-left: 10px; border-left: 2px solid var(--brand); font-size: .93rem; line-height: 1.45; }
.tm-when, .tm-job { margin: 0; font-size: .78rem; color: var(--ink-2); }
.tm-off { background: var(--off); border-style: dashed; color: var(--off-ink); }
.tm-off .tm-role, .tm-off .tm-job { color: var(--off-ink); }
.tm-off .tm-tag { background: transparent; color: var(--off-ink); border: 1px solid var(--line); }

.tm-checks { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--audit-soft); }
.tm-checks h2, .tm-checks p { margin: 0; }
.tm-checks > p { color: var(--ink-2); max-width: 65ch; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tm-audit .tm-quote { border-left-color: var(--audit); }
.tm-audit .tm-tag { background: transparent; color: var(--audit); border: 1px solid var(--audit); }

.tm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: tm; }
.tm-steps li { counter-increment: tm; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.tm-steps li::before { content: "Step " counter(tm); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
