/* ============================================================
   KOGNEV — Apie
   Scoped to body.kg2, loaded alongside home.css, which supplies
   tokens, the shared kg-hero anatomy this page reuses (photo
   instead of the homepage's diagram), kg-section rhythm and the
   kg-section--dark closing-band treatment.

   Founder photo gets a hairline frame, not a card: a 1px rule and
   nothing else, so it sits in the same "structure, not chrome"
   register as everything around it.
   ============================================================ */

/* ---------- Hero portrait ---------- */
.kg2 .kg-portrait { margin: 0; }
.kg2 .kg-portrait__frame {
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-width: 26rem;
}
.kg2 .kg-portrait__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg2 .kg-portrait figcaption { margin-top: var(--s-3); display: grid; gap: 2px; }
.kg2 .kg-portrait figcaption strong { font-size: var(--t-body); color: var(--ink); font-weight: 600; }
.kg2 .kg-portrait figcaption span { font-size: var(--t-micro); color: var(--slate); }

/* ---------- Achievements row ----------
   Three peer results in chronological order, so the year is the
   only marker the sequence needs. Equal columns, hairline
   dividers between them, no cards or shadows. */
.kg2 .kg-ach-head { max-width: 46rem; }
.kg2 .kg-ach-head p { margin-top: var(--s-2); }
.kg2 .kg-ach-row {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.kg2 .kg-ach {
  padding: var(--s-4) var(--s-4) 0 0;
  border-bottom: 3px solid transparent;
}
.kg2 .kg-ach + .kg-ach { border-left: 1px solid var(--rule); padding-left: var(--s-4); }
.kg2 .kg-ach__year { margin: 0; font-size: var(--t-micro); color: var(--slate); }
.kg2 .kg-ach__stat {
  margin: var(--s-2) 0 0;
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kg2 .kg-ach__stat--signal { color: var(--signal-ink); }
.kg2 .kg-ach h3 { margin-top: var(--s-3); }
.kg2 .kg-ach p:last-child { margin-top: var(--s-2); }

/* ---------- Facts + sources ---------- */
.kg2 .kg-facts { border-top: 1px solid var(--rule); }
.kg2 .kg-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
}
.kg2 .kg-facts dt { margin: 0; font-size: var(--t-micro); font-weight: 600; color: var(--slate); }
.kg2 .kg-facts dd { margin: 0; font-size: var(--t-micro); line-height: 1.5; color: var(--ink); }

.kg2 .kg-sources { margin-top: var(--s-6); }
.kg2 .kg-sources ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.kg2 .kg-sources li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.kg2 .kg-sources li span { font-size: var(--t-micro); color: var(--slate); }
.kg2 .kg-sources li a { font-size: var(--t-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.kg2 .kg-sources li a:hover { text-decoration-color: var(--signal-ink); }
.kg2 .kg-sources li a:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 2px; }
/* A single-line source link measured 27px tall, under the 44px touch minimum. */
@media (pointer: coarse) {
  .kg2 .kg-sources li a { display: inline-block; min-height: 44px; padding-block: 10px; }
}

/* ---------- Closing CTA (dark band) ---------- */
.kg2 .kg-apie-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.kg2 .kg-apie-cta__text { display: grid; gap: var(--s-2); max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .kg2 .kg-facts > div { grid-template-columns: 1fr; gap: var(--s-1); }
}
@media (max-width: 700px) {
  .kg2 .kg-ach-row { grid-template-columns: 1fr; }
  .kg2 .kg-ach + .kg-ach { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; margin-top: var(--s-4); padding-top: var(--s-4); }
  .kg2 .kg-portrait__frame { max-width: none; }
  .kg2 .kg-apie-cta .btn-primary { width: 100%; justify-content: center; }
}
