/* about.css - owned by the about section. Do not edit other files from here. */

.section--about {
  --about-nav: 64px;
  --about-sticky-top: calc(var(--about-nav) + var(--sp-4));
}

/* ---------- two-column block: 36 / 64, never centred ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--sp-5);
}

.about-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  font-weight: 500;
  color: var(--ink);
}

.about-stack {
  margin-top: var(--sp-3);
  color: var(--ink-45);
}

.about-body .prose {
  color: var(--ink-56);
}

/* ---------- capabilities: definition rows, hairlines, no cells ---------- */

.about-caps {
  margin-top: var(--sp-6);
}

.about-caps-title {
  color: var(--ink-45);
  margin-bottom: var(--sp-2);
}

.about-caps-list {
  margin: 0;
}

.about-cap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-1);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--ink-25);
}

.about-cap-row:last-child {
  border-bottom: 1px solid var(--ink-25);
}

.about-cap-label {
  color: var(--ink-45);
  transition: color var(--dur-color) var(--ease);
}

.about-cap-value {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: var(--tr-body);
  color: var(--ink);
}

.about-cap-note {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--ink-45);
  transition: max-height var(--dur-ui) var(--ease),
    opacity var(--dur-color) var(--ease), margin-top var(--dur-ui) var(--ease);
}

.about-cap-row:hover .about-cap-label,
.about-cap-row:focus-within .about-cap-label {
  color: var(--ink);
}

.about-cap-row:hover .about-cap-note,
.about-cap-row:focus-within .about-cap-note {
  max-height: 4rem;
  opacity: 1;
  margin-top: var(--sp-1);
}

/* ---------- tablet and up: the sticky column becomes the motion ---------- */

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 36fr 64fr;
    column-gap: clamp(var(--sp-4), 4vw, var(--sp-7));
    row-gap: 0;
    align-items: start;
  }

  .about-sticky {
    position: sticky;
    top: var(--about-sticky-top);
    align-self: start;
  }

  .about-cap-row {
    grid-template-columns: 18ch minmax(0, 1fr);
    align-items: baseline;
    column-gap: var(--sp-4);
  }
}

@media (min-width: 1200px) {
  .about-grid {
    column-gap: var(--sp-7);
  }
}

/* short viewports: sticky would clip the headline, so let it sit still */
@media (min-width: 768px) and (max-height: 640px) {
  .about-sticky {
    position: static;
  }
}

/* ---------- reduced motion: nothing hidden, nothing transformed ---------- */

@media (prefers-reduced-motion: reduce) {
  .about-title,
  .about-body .prose,
  .about-cap-row {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .about-cap-note {
    max-height: none;
    opacity: 1;
    margin-top: var(--sp-1);
  }

  .about-cap-label {
    transition: none;
  }
}
