/* ==========================================================================
   About · 3 — Who leads Finflow
   "Credentials first, story on demand":
       ┌ (photo) Kunal Mangal              ┐ ┌ (photo) Vineet Mehta            ┐
       │         Co-founder and CEO        │ │         Co-founder and CTO      │
       │ the bio's opening line (lede)     │ │ …                               │
       │ [Oracle][Verizon][Truist][…]      │ │ [London Stock Exchange][…]      │
       │ ┄ rest of the bio, opens in place │ │                                 │
       │ Read Kunal's story ⌄   in … ↗     │ │ Read Vineet's story ⌄   in … ↗  │
   The rest of each bio sits in a 0fr → 1fr grid row that eases open
   (js/about/leaders.js sets aria-expanded). Both cards share the row's
   height, with their footers pinned to the bottom, so they stay level. The portrait frame holds still on hover; only the
   photo inside settles a touch closer. Prefixed .ld- and scoped to .ld.
   ========================================================================== */

.ld {
  --ld-frame: #FFFFFF;
  padding: clamp(72px, 9vw, 120px) var(--page-px);
  background: var(--surface-raised);
  border-top: 1px solid var(--border);
}
:root[data-theme="dark"] .ld { --ld-frame: #0B1F42; }

.ld-inner { max-width: var(--container); margin: 0 auto; }
.ld-title { margin-bottom: clamp(32px, 4vw, 48px); font-size: var(--fs-section-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.ld-title em { font-style: normal; color: var(--accent); }

.ld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.ld-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--ld-frame);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.has-js .ld-card.anim-el { transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease; }
.ld-card:hover { border-color: var(--border-strong); box-shadow: 0 24px 44px -32px rgba(10,47,107,0.35); }

.ld-head { display: flex; align-items: flex-end; gap: 22px; }
/* the frame holds still; on hover only the photo inside settles closer */
.ld-photo { position: relative; flex: none; width: clamp(140px, 15vw, 184px); aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--surface-raised); }
.ld-photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(10,47,107,0.08); pointer-events: none; }
.ld-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.ld-card:hover .ld-photo img { transform: scale(1.04); }
.ld-head > div { padding-bottom: 6px; }
.ld-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.ld-role { margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--accent-text); }

.ld-lede { margin-top: 22px; font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--text-primary); text-wrap: pretty; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; padding: 0; list-style: none; }
.ld-chips li { padding: 4px 10px; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); background: var(--surface-raised); border: 1px solid var(--border); border-radius: 99px; }

/* the rest of the bio, opening in place */
.ld-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ld-more-in { overflow: hidden; }
.ld-more-in p { padding-top: 14px; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); opacity: 0; transform: translateY(-4px); transition: opacity 0.3s ease, transform 0.35s var(--ease-out); }
.ld-more-in p:first-child { margin-top: 4px; }
.ld-card.is-open .ld-more { grid-template-rows: 1fr; }
.ld-card.is-open .ld-more-in p { opacity: 1; transform: none; transition-delay: 0.08s; }

.ld-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.ld-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  background: none;
  border: 0;
  cursor: pointer;
}
.ld-toggle .ti { font-size: 16px; transition: transform 0.3s var(--ease-out); }
.ld-card.is-open .ld-toggle .ti { transform: rotate(180deg); }
.ld-toggle:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ld-toggle:focus-visible, .ld-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ld-in { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.ld-in .ti { font-size: 16px; }
.ld-in .ti-arrow-up-right { font-size: 14px; transition: transform 0.25s var(--ease-out); }
.ld-in:hover { color: var(--text-primary); }
.ld-in:hover .ti-arrow-up-right { transform: translate(2px, -2px); }

@media (max-width: 860px) {
  .ld-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .ld-photo { width: 124px; }
  .ld-head { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-more, .ld-more-in p, .ld-photo img, .ld-toggle .ti { transition: none; }
}
