/* ==========================================================================
   Parallex · pages-about.css
   About: WebGL night hero (about-world.js: the team as a constellation)
   and the team section (faces, then the picked person's name, role and bio).
   ========================================================================== */

/* ---------- hero ---------- */
.ab-hero { position: relative; isolation: isolate; overflow: clip; min-height: max(100svh, 700px); display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 clamp(64px, 8vw, 110px); color: #fff; background: #0b1020; }
.ab-hero.is-picking { cursor: pointer; }
.ab-world { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 65% at 72% 66%, #456caf, #1a2744 50%, #0b1020 80%); }
.ab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.ab-world.is-live .ab-canvas { opacity: 1; }
.ab-world::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,8,16,.62), rgba(5,8,16,.28) 38%, transparent 58%); }
.ab-hero .crumbs { color: var(--on-dark-2); margin-bottom: 28px; }
.ab-hero .crumbs a:hover, .ab-hero .crumbs [aria-current] { color: #fff; }

.ab-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); pointer-events: none; }
.ab-copy { pointer-events: auto; }
.ab-copy h1 { margin-top: 18px; max-width: 11ch; }
.ab-lead { margin-top: 26px; color: #c5d0e6; max-width: 46ch; }
.ab-copy .btn-row { margin-top: 36px; }
.ab-hero .btn-primary { --bg: #fff; --fg: var(--navy); }
.ab-hero .btn-primary:hover { --bg: #EEF2FB; }


/* ---------- team: faces left, headline right ---------- */
.ab-team { background: #fff; min-height: min(100svh, 920px); display: grid; align-items: center; }
.ab-kin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(48px, 7vw, 140px); align-items: start; }
.ab-kin-h { grid-column: 2; grid-row: 1; justify-self: end; text-align: end; max-width: 13ch; font-size: clamp(40px, 26px + 3.4vw, 84px); line-height: 1.02; letter-spacing: -.04em; }
.ab-kin-l { grid-column: 1; grid-row: 1; }
.ab-grad, .ab-grad .kw { background: linear-gradient(100deg, #3B5690, #678EE5 30%, #9fc0ff 50%, #678EE5 70%, #3B5690) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: abShimmer 6s linear infinite; }
.ab-grad:has(.kw) { background: none; animation: none; }
@keyframes abShimmer { to { background-position: -200% 0; } }

.ab-picker { display: grid; grid-template-columns: repeat(5, max-content); gap: 14px; }
.ab-face { --s: clamp(60px, 3vw + 34px, 84px); position: relative; width: var(--s); height: var(--s); border-radius: 50%; padding: 0; transition: transform .35s var(--ease-snap); }
.ab-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: .6; transition: filter .35s, opacity .35s, box-shadow .35s; }
.ab-face:hover { transform: translateY(-3px); }
.ab-face:hover img { filter: grayscale(.3); opacity: 1; }
.ab-face[aria-selected="true"] { transform: translateY(-3px); }
.ab-face[aria-selected="true"] img { filter: none; opacity: 1; box-shadow: 0 12px 28px -10px rgba(16,22,36,.5); }

.ab-info { margin-top: 40px; max-width: 52ch; }
.ab-info > * { transition: opacity .25s var(--ease-out), transform .4s var(--ease-snap); }
.ab-info.is-swap > * { opacity: 0; transform: translateY(8px); }
.ab-name { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.02em; }
.ab-role { margin-top: 6px; color: var(--b1); font-weight: 500; font-size: var(--t-h4); }
.ab-bio { margin-top: 16px; color: var(--muted); font-size: var(--t-lead); line-height: 1.55; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .ab-hero { align-items: start; min-height: 0; padding-bottom: min(118vw, 620px); }
  .ab-hero-grid { grid-template-columns: 1fr; }
  .ab-world::after { background: linear-gradient(180deg, rgba(5,8,16,.7), rgba(5,8,16,.35) 40%, transparent 60%); }
  .ab-kin { grid-template-columns: 1fr; }
  .ab-kin-h { grid-column: 1; justify-self: start; text-align: start; }
  .ab-kin-l { grid-row: 2; }
  .ab-team { min-height: 0; }
}
@media (max-width: 479px) { .ab-picker { gap: 10px; } .ab-face { --s: calc((100vw - 2 * var(--margin) - 40px) / 5); } }

html.reduced-motion .ab-grad, html.reduced-motion .ab-grad .kw { animation: none; background-position: 30% 0; }
