/*
  About, careers and sign-in pages. Loaded after site.css, home.css and pages.css, which own the
  tokens, header, buttons, cards, chips, split layout, closing band and footer. Order: company
  story and numbers, leadership grid, offices, open roles, role detail, sign-in card, small screens.
*/

/* ---------- Company story ---------- */
.story p { max-width: 40rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); box-shadow: var(--shadow-sm); }
.facts strong { display: block; color: var(--ink); font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.92rem; }
.mission + .grid { margin-top: 2rem; }
.mission { margin: 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); font-size: 1.2rem; font-weight: 600; line-height: 1.5; }

/* ---------- Leadership grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.person { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); }
.person .avatar { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; font-size: 1.1rem; }
.person h3 { margin-bottom: 0.1rem; }
.person .role-title { margin: 0 0 0.6rem; color: var(--accent-strong); font-size: 0.9rem; font-weight: 600; }
.person p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
.backers { margin-top: 2.5rem; }
.backers h3 { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.directory-note { margin: 2rem 0 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.office h3 { margin-bottom: 0.2rem; }
.office .tag { display: inline-block; margin-bottom: 0.6rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.office address { color: var(--muted); font-style: normal; font-size: 0.95rem; }

/* ---------- Open roles ---------- */
.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.perk h3 { font-size: 1.05rem; }
.perk p { color: var(--muted); font-size: 0.95rem; }
.team-block + .team-block { margin-top: 2.25rem; }
.team-block h3 { margin-bottom: 0.75rem; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.job-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); }
.job-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.job-list li:last-child { border-bottom: 0; }
.job-title { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.job-meta { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.9rem; }
.job-link { font-weight: 600; white-space: nowrap; }

/* ---------- Role detail ---------- */
.role-detail { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-sm); }
.role-detail + .role-detail { margin-top: 1.5rem; }
.role-detail h3 { margin-bottom: 0.2rem; font-size: 1.3rem; }
.role-detail .job-meta { margin-bottom: 1rem; }
.role-detail h4 { margin: 1rem 0 0.3rem; color: var(--ink); font-size: 0.95rem; }
.role-detail ul { margin: 0 0 0.5rem; color: var(--muted); }
.role-detail ul li + li { margin-top: 0.3rem; }
.role-detail .back { margin: 1rem 0 0; font-size: 0.93rem; }

/* ---------- Sign-in card ---------- */
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.auth-logo img { display: block; width: 3rem; height: 3rem; }
.auth-card .eyebrow { text-align: center; }
.auth-card h1 { text-align: center; }
.auth-card .auth-lead { margin: 0.4rem 0 0; color: var(--muted); text-align: center; font-size: 0.95rem; }
.sso-list { margin-top: 1.5rem; }
.auth-card .sso-list .btn { margin-top: 0.6rem; }
.auth-card .sso-list .btn:first-child { margin-top: 0; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 0.85rem; }
.auth-divider::before,
.auth-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.auth-card .form-note { text-align: center; }
.auth-card .form-note + .form-note { margin-top: 0.6rem; }
.auth-card .code-input { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 0.4em; text-align: center; }

/* ---------- Small screens ---------- */
@media (max-width: 62rem) {
  .team-grid,
  .office-grid,
  .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .team-grid,
  .office-grid,
  .perk-grid,
  .facts { grid-template-columns: minmax(0, 1fr); }
  .job-list li { padding: 1rem 1.15rem; }
  .role-detail { padding: 1.25rem; }
}
