/* Ki — Founders (Zeus & Noa)
   Two layouts: `pair` (Home) and `single` (legacy). All selectors scoped
   under .ki-scope .ki-founders + a data-layout="…" attribute. */

.ki-scope .ki-founders[data-layout="single"] { background: var(--ki-cream); }
.ki-scope .ki-founders[data-layout="pair"]   { background: var(--ki-paper); }

/* ════════════════════════════════════════════════════════════════
   Pair layout — two founder cards, centered head + CTA below.
   Source: Ki Home.html lines 458–479 + 1094–1131.
   ════════════════════════════════════════════════════════════════ */
.ki-scope .ki-founders[data-layout="pair"] .ki-founders-head {
  text-align: center;
  margin-bottom: 64px;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founders-head .catchline {
  display: block;
  font-family: var(--ki-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ki-blue-2);
  margin-bottom: 18px;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founders-head h2 {
  /* Source `.founders-head h2` (Ki Home.html line 461). Explicit 700. */
  font-family: var(--ki-serif);
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--ki-slate);
  line-height: 1.1;
  margin: 0 auto;
  max-width: 24ch;
  letter-spacing: -0.005em;
}

/* Compact section padding (was the 140px ki-block default). */
.ki-scope .ki-founders[data-layout="pair"].ki-block { padding: 84px 0; }

.ki-scope .ki-founders[data-layout="pair"] .ki-founders-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
  /* keep the pair narrower so the portraits read smaller / more compact */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-portrait {
  aspect-ratio: 4 / 3;          /* shorter than the old square */
  background: var(--ki-cream);
  border: 1px solid var(--ki-rule);
  border-radius: 12px;          /* rounded images */
  position: relative;
  overflow: hidden;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 6px;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-name {
  font-family: var(--ki-serif);
  font-size: 28px;
  color: var(--ki-slate);
  font-weight: 400;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-role {
  font-family: var(--ki-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ki-blue);
  font-weight: 600;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-bio {
  font-family: var(--ki-num);
  font-size: 16px;
  color: rgba(26, 39, 48, 0.82);
  margin: 0;
  line-height: 1.65;
  font-weight: 400;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-quote {
  margin-top: 8px;
  padding: 18px 22px;
  background: var(--ki-blue-mist);
  border-left: 2px solid var(--ki-blue);
  font-family: var(--ki-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ki-slate);
  line-height: 1.5;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--ki-sans);
  font-size: 12px;
  color: var(--ki-ink-mute);
  letter-spacing: 0.06em;
}

.ki-scope .ki-founders[data-layout="pair"] .ki-founders-cta {
  text-align: center;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-btn-deep {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 32px;
  background: var(--ki-blue-deep);
  color: #fff;
  font-family: var(--ki-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid var(--ki-blue-deep);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-btn-deep:hover {
  background: transparent;
  color: var(--ki-blue-deep);
  transform: translateY(-1px);
}
.ki-scope .ki-founders[data-layout="pair"] .ki-btn-deep::after {
  content: "→";
  font-family: var(--ki-serif);
  font-size: 18px;
}

@media (max-width: 1100px) {
  .ki-scope .ki-founders[data-layout="pair"] .ki-founders-pair {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Mobile read-more / read-less (pure CSS checkbox toggle) ──
   The collapse wrapper keeps the same vertical rhythm as loose bio/quote.
   Behavior only activates on phone widths; desktop shows everything and
   hides the toggle link. */
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-collapse {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* link hidden by default (desktop) */
.ki-scope .ki-founders[data-layout="pair"] .ki-founder-more {
  display: none;
}

@media (max-width: 767px) {
  /* collapsed bio — clamp to N lines (N is the "Lines shown" control) */
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-collapse .ki-founder-bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  /* collapsed — hide the quote */
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-collapse .ki-founder-quote {
    display: none;
  }
  /* the Read more / Show less link */
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-more {
    display: inline-flex;
    align-items: center;
    width: max-content;
    cursor: pointer;
    font-family: var(--ki-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ki-blue);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 160ms ease;
  }
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-more:hover { opacity: 0.7; }
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-more .less-txt { display: none; }

  /* expanded (checkbox checked) — full bio + quote + "Show less" */
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-toggle:checked ~ .ki-founder-bio {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-toggle:checked ~ .ki-founder-quote {
    display: block;
  }
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-toggle:checked ~ .ki-founder-more .more-txt {
    display: none;
  }
  .ki-scope .ki-founders[data-layout="pair"] .ki-founder-toggle:checked ~ .ki-founder-more .less-txt {
    display: inline;
  }
}

.ki-scope .ki-founders .ki-founders-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.ki-scope .ki-founders .ki-founders-portrait {
  aspect-ratio: 4/5;
  background: var(--ki-cream);
  border: 1px solid var(--ki-rule);
  position: relative;
  overflow: hidden;
}
.ki-scope .ki-founders .ki-founders-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ki-scope .ki-founders .ki-founders-stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ki-scope .ki-founders .ki-founders-stamp .who {
  font-family: var(--ki-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ki-ink);
}
.ki-scope .ki-founders .ki-founders-stamp .role {
  font-family: var(--ki-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ki-ink-mute);
}

.ki-scope .ki-founders .ki-founders-eyebrow {
  margin-bottom: 18px;
  display: block;
}

.ki-scope .ki-founders .ki-founders-copy h2 {
  font-family: var(--ki-serif);
  font-weight: 300;
  font-size: clamp(32px, 3.8vw, 51px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ki-ink);
}
.ki-scope .ki-founders .ki-founders-copy h2 em {
  font-style: italic;
  color: var(--ki-blue-deep);
}

.ki-scope .ki-founders .ki-founders-lead {
  font-family: var(--ki-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ki-ink-soft);
  margin: 0 0 28px;
  line-height: 1.45;
}

.ki-scope .ki-founders .ki-founders-p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ki-ink-soft);
  margin: 0 0 16px;
}

.ki-scope .ki-founders .ki-founders-sig {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--ki-rule);
}
.ki-scope .ki-founders .ki-founders-sig .name {
  font-family: var(--ki-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--ki-ink);
}
.ki-scope .ki-founders .ki-founders-sig .label {
  font-family: var(--ki-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ki-ink-mute);
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .ki-scope .ki-founders .ki-founders-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ki-scope .ki-founders .ki-founders-copy h2 { font-size: clamp(30px, 5vw, 42px); }
}
@media (max-width: 700px) {
  .ki-scope .ki-founders .ki-founders-sig {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
