/* About (/our-story/): story, growth sequence, vision/mission/ethos, leadership. Ported from the Our Story and Leadership designs, refined for Geist. */

html { scroll-padding-top: 16px; }

.st-h2 { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--fs-subsection); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }

/* ---------- Opening ---------- */
.st-open { padding: clamp(40px, 6vw, 88px) var(--gutter) 0; }
.st-title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--fs-page-title); line-height: .98; letter-spacing: var(--tracking-display); max-width: 15em; text-wrap: balance; }
.st-open__row { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 5vw, 80px); margin-top: clamp(32px, 4vw, 56px); align-items: flex-end; }
.st-tagline { flex: 1 1 300px; max-width: 420px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -.01em; color: var(--grey-3); }
.st-stats { flex: 2 1 480px; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.st-stat { padding: 12px 12px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.st-stat__v { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.st-stat__l { font-size: 11px; line-height: 1.35; color: var(--grey-5); }

.st-figure { margin: clamp(40px, 5vw, 72px) calc(-1 * var(--gutter)) 0; }
.st-figure img { display: block; width: 100%; height: auto; aspect-ratio: 2400 / 1245; max-height: 78vh; object-fit: cover; object-position: 50% 80%; filter: grayscale(1) contrast(1.1); }
@media (max-width: 599px) { .st-figure img { aspect-ratio: 4 / 3; object-position: 38% 40%; } }
.st-jump { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: clamp(28px, 3vw, 40px); padding-top: 12px; border-top: 1px solid var(--line); }
.st-jump a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--black); text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); transition: box-shadow var(--dur-fast) var(--ease); }
.st-jump a:hover { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- About ---------- */
.st-about { padding: var(--section-top) var(--gutter); }
.st-lead { margin: clamp(24px, 3vw, 36px) 0 clamp(32px, 4vw, 48px); font-size: clamp(22px, 2.15vw, 30px); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; max-width: 40ch; text-wrap: pretty; }
.st-cols { column-width: 300px; column-gap: clamp(24px, 3vw, 48px); font-size: 17px; line-height: 1.6; color: var(--grey-3); border-top: 1px solid var(--line); padding-top: 24px; }
.st-cols p { margin: 0 0 1em; break-inside: avoid; }
.st-cols p:last-child { margin: 0; }

/* ---------- How the group grew (scroll-driven) ---------- */
.st-seq { position: relative; background: var(--black); color: var(--white); height: 360vh; }
.st-seq__panel { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(20px, 3vw, 32px); }
/* 17 invisible sentinels (16 years + today) spanning the scroll distance; the one under the viewport centre is the active step */
.st-seq__steps { position: absolute; top: 50vh; bottom: 50vh; left: 0; width: 1px; display: flex; flex-direction: column; pointer-events: none; visibility: hidden; }
.st-seq__steps > div { flex: 1 1 0; }
.st-seq.is-static { height: auto; }
.st-seq.is-static .st-seq__panel { position: relative; min-height: 0; }
.st-seq.is-static .st-seq__steps { display: none; }
.st-seq__title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.03em; }
.st-seq__body { flex: 1; display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 4vw, 64px); align-items: center; padding: clamp(20px, 3vw, 40px) 0; }
.st-seq__left { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.st-year { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(96px, 13vw, 200px); line-height: .92; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; padding-bottom: .04em; }
.st-count { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line-inverse); padding-top: 14px; }
.st-count__n { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; letter-spacing: -.03em; color: var(--signal); font-variant-numeric: tabular-nums; }
.st-count__l { font-size: 12px; color: var(--text-inverse-soft); }
.st-events { display: flex; flex-direction: column; min-height: 132px; }
.st-events li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-inverse); }
.st-events .k { flex: 0 0 76px; font-size: 11px; color: var(--text-inverse-muted); }
.st-events .nm { font-size: 15px; font-weight: 500; }

.st-tiles { flex: 1.6 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 1px; background: var(--black); border: 1px solid var(--line-inverse); }
.st-tile { position: relative; aspect-ratio: 4 / 3; background: var(--black); box-shadow: 0 0 0 1px var(--line-inverse); display: flex; align-items: center; justify-content: center; padding: 10px; transition: background var(--dur-slow) var(--ease); }
.st-tile img { max-width: 88%; max-height: 52%; width: auto; height: auto; display: block; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.st-tile .tag { position: absolute; left: 6px; top: 4px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; line-height: 1.4; color: rgba(255,255,255,.4); }
.st-tile.is-on { background: var(--surface); }
.st-tile.is-on img { opacity: 1; transform: none; }
.st-tile.is-on .tag { color: var(--grey-5); }
.st-tile.is-new { box-shadow: var(--edge-selected), 0 0 0 1px var(--line-inverse); }

.st-rail { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); }
.st-rail button { all: unset; cursor: pointer; min-height: 44px; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; }
.st-rail button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.st-rail .bar { display: block; height: 3px; background: var(--line-inverse); transition: background var(--dur-base) var(--ease); }
.st-rail .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; color: rgba(255,255,255,.4); }
.st-rail .has .lbl { color: var(--text-inverse-soft); }
.st-rail .lit .bar { background: rgba(255,255,255,.55); }
.st-rail .lit.has .bar { background: var(--white); }
.st-rail .cur .lbl { color: var(--white); }
.st-rail button:hover .lbl { color: var(--white); }
.st-rail .lbl--wide { display: none; }
.st-seq__note { margin-top: 10px; font-size: 13px; color: var(--text-inverse-muted); }

@media (min-width: 960px) {
  .st-seq { height: 420vh; }
  .st-tiles { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .st-rail .lbl--wide { display: block; }
  .st-rail .lbl--narrow { display: none; }
}

/* ---------- Vision / Mission / Ethos ----------
   The whole collapsed column (desktop) or row (mobile) is the button. No hover-to-select: a click is what changes state. */
.st-vme { padding: var(--section-top) var(--gutter); }
.st-vme__title { margin-bottom: clamp(32px, 4vw, 48px); }
.vme { display: flex; flex-direction: column; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.vme__col { flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; background: var(--white); color: var(--black); overflow: hidden; transition: flex var(--dur-layout) var(--ease), background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease); }
.vme__col + .vme__col { border-top: 1px solid var(--black); }
.vme__col:not(.is-active):hover { background: var(--grey-1); }
.vme__col.is-active { background: var(--black); color: var(--white); }
.vme__h { margin: 0; font: inherit; display: flex; flex-direction: column; }
.vme__btn { appearance: none; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(14px, 2vw, 24px); min-height: 64px; }
.vme__btn:focus-visible { outline: 2px solid var(--signal); outline-offset: -4px; }
.vme__name { display: none; font-family: var(--font-mono); font-size: 12px; }
.vme__word { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(26px, 6.5vw, 34px); line-height: 1; letter-spacing: -.03em; }
.vme__icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.vme__icon::before, .vme__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform var(--dur-base) var(--ease); }
.vme__icon::after { transform: rotate(90deg); }
.vme__btn[aria-expanded="true"] .vme__icon::after { transform: rotate(0deg); }
.vme__panel { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 0 clamp(14px, 2vw, 24px) clamp(24px, 3vw, 32px); }
.vme__panel[hidden] { display: none; }
.vme__pull { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(28px, 3.1vw, 48px); line-height: 1.06; letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }
.vme__foot { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; }
.vme__body { flex: 2 1 320px; font-size: 16px; line-height: 1.6; max-width: 62ch; color: var(--grey-3); }
.vme__col.is-active .vme__body { color: var(--text-inverse-body); }
.vme__fig { flex: 1 1 180px; border-top: 1px solid currentColor; padding-top: 10px; }
.vme__fig-v { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(48px, 5vw, 80px); line-height: .92; letter-spacing: var(--tracking-display); }
.vme__fig-l { font-size: 11px; margin-top: 10px; }

@media (min-width: 960px) {
  .vme { flex-direction: row; min-height: 560px; }
  .vme__col { flex: 1 1 0; }
  .vme__col.is-active { flex: 4 1 0; }
  .vme__col + .vme__col { border-top: 0; border-left: 1px solid var(--black); }
  .vme__icon { display: none; }
  .vme__name { display: block; }
  .vme__btn { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 56px; padding: 16px clamp(14px, 2vw, 24px) 20px; }
  /* Collapsed column: the button fills the full column height, vertical word at the foot */
  .vme__col:not(.is-active) .vme__h, .vme__col:not(.is-active) .vme__btn { flex: 1; }
  .vme__word { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(48px, 5vw, 80px); line-height: .9; letter-spacing: -.04em; }
  .vme__col.is-active .vme__word { display: none; }
  .vme__col.is-active .vme__btn { cursor: default; }
  .vme__panel { padding-top: clamp(8px, 2vw, 24px); }
}

/* ---------- Leadership ---------- */
.ld-intro { padding: 0 var(--gutter) clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.ld-intro__sub { font-size: var(--fs-lead); line-height: 1.5; color: var(--grey-3); max-width: 56ch; }
.ld-h3 { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: clamp(20px, 2.4vw, 32px); }

/* Founders: compact, small portraits (4 across desktop, 2 tablet, photo beside name on phones) */
.ld-mgmt { padding: 0 var(--gutter) var(--section-top); }
.founders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(32px, 3vw, 48px) clamp(20px, 2.4vw, 40px); }
.founder { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.founder__photo { width: min(100%, 220px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey-1); }
.founder__photo img, .ld-card__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; display: block; filter: grayscale(1) contrast(1.15); transition: filter var(--dur-slow) var(--ease); }
.founder:hover .founder__photo img, .founder:focus-within .founder__photo img, .ld-card:hover .ld-card__photo img { filter: none; }
.founder__id { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--black); padding-top: 12px; }
.founder__name { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(22px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -.03em; }
.founder__title { font-size: 14px; line-height: 1.4; color: var(--grey-3); }
.founder__li { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--black); }
.founder__li:hover { text-decoration: underline; text-underline-offset: 4px; }
.founder__bio { font-size: 15px; line-height: 1.55; color: var(--grey-3); text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }

@media (max-width: 599px) {
  .founders { gap: 32px; }
  .founder { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px 16px; align-items: start; }
  .founder__photo { width: 112px; }
  .founder__id { border-top: 0; padding-top: 0; }
  .founder__bio { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 1279px) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .founders { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Equal bio blocks: every bio reserves five lines; anything longer ends in an ellipsis. */
@media (min-width: 600px) { .founder__bio { min-height: calc(1.55em * 5); } }

/* Directory */
.ld-dir { padding: var(--section-top) var(--gutter); }
.ld-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--black); }
.ld-tools__right { display: flex; align-items: center; gap: 20px; }
.ld-dir__count { font-size: 11px; color: var(--grey-5); white-space: nowrap; }
.ld-chips { max-width: 100%; padding: 2px 2px 4px; }
.ld-chips .chip { min-height: 40px; white-space: nowrap; }
.ld-sort { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.ld-sort__lbl { color: var(--grey-5); }
.ld-sort button { appearance: none; border: 0; border-radius: 0; background: none; font: inherit; cursor: pointer; min-height: 40px; padding: 0 6px; display: flex; align-items: center; color: var(--grey-5); }
.ld-sort button:hover { color: var(--black); }
.ld-sort button[aria-pressed="true"] { color: var(--black); box-shadow: inset 0 -2px 0 var(--accent); }
.ld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-left: 1px solid var(--line); }
.ld-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: start; background: var(--white); transition: background var(--dur-base) var(--ease); }
.ld-card__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey-1); }
.ld-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ld-card__inst { font-size: 10px; color: var(--grey-5); }
.ld-card__name { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.ld-card__title { font-size: 14px; line-height: 1.4; color: var(--grey-3); }
.ld-card__note { font-size: 13px; line-height: 1.4; color: var(--grey-5); }
@media (max-width: 599px) { .ld-card { grid-template-columns: 72px minmax(0, 1fr); } }

/* Our People: profiles to follow, set quietly */
.ld-people { padding: var(--section-top) var(--gutter); }
.teams { display: flex; flex-wrap: wrap; gap: 40px clamp(24px, 4vw, 64px); }
.team { flex: 1 1 440px; min-width: 0; }
.team__label { font-size: 17px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--black); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.slot { padding: 16px 0 4px; display: flex; flex-direction: column; gap: 4px; }
.slot__ph { width: min(100%, 120px); aspect-ratio: 4 / 5; border: 1px dashed rgba(10,10,10,.22); background: var(--grey-1); display: flex; align-items: flex-end; padding: 8px; margin-bottom: 6px; }
.slot__ph span, .slot__name, .slot__title { font-size: 13px; line-height: 1.4; color: var(--grey-5); }
.slot__name { color: var(--grey-3); }
.slot__photo { width: min(100%, 120px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey-1); margin-bottom: 6px; }
.slot__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; display: block; filter: grayscale(1) contrast(1.15); transition: filter var(--dur-slow) var(--ease); }
.slot:hover .slot__photo img { filter: none; }
.slot__name--set { color: var(--black); font-weight: 600; }

/* ---------- Closing ---------- */
.st-close { padding: clamp(64px, 9vw, 128px) var(--gutter) clamp(48px, 6vw, 80px); }
.st-close__label { font-size: 12px; font-weight: 400; color: var(--text-inverse-muted); margin-bottom: clamp(20px, 2.4vw, 32px); }
.st-close__line { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(36px, 5.4vw, 88px); line-height: 1; letter-spacing: var(--tracking-display); max-width: 20ch; text-wrap: balance; }
.st-close__line em { font-style: normal; color: var(--text-inverse-muted); }
.st-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 88px); }
.st-next a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 20px; border-top: 1px solid var(--white); text-decoration: none; color: var(--white); font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.025em; transition: color var(--dur-fast) var(--ease); }
.st-next a span { transition: transform var(--dur-base) var(--ease); }
.st-next a:hover { color: var(--text-inverse-soft); }
.st-next a:hover span { transform: translateX(4px); }

/* Narrow phones: "5.57M+" does not fit a quarter of 350px, so fold the stat strip to 2x2 */
@media (max-width: 599px) {
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  /* Keep the sticky sequence panel within one phone viewport */
  .st-seq__body { gap: 20px; padding: 16px 0; }
  .st-seq__left { gap: 12px; }
  .st-events { min-height: 0; }
  .st-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .st-tile { aspect-ratio: 3 / 2; padding: 6px; }
  .st-tile .tag { display: none; }
}
