/* capabilities (Definer Group brand section, 2026-11-18 content widening).
   A catalogue index of what a line does: small Roman numerals (craft limit L3), the
   name in the display serif, one quiet line, hairlines between; no cards, no icons
   (L4). From 960px the label, h2 and a small counter stay in view on the left while
   the entries pass on the right.
   Still state (phones, reduced motion, no JS, the pause switch, the still preset):
   every entry in full, no counter, the first entry's gilt rule drawn.
   Motion (L6, recipe contract R00): world.js marks the list is-live only from 960px
   with motion allowed, then each entry reached (is-in) and the last one reached
   (is-on) on every scroll frame, in both directions. Transform and opacity only.
   Semantic tokens only. */
.s-cap__body { display: grid; row-gap: var(--space-7); }
.s-cap__label { margin-bottom: var(--space-4); color: var(--accent); }
.s-cap__intro { margin-top: var(--space-4); max-width: 26rem; color: var(--fg-soft); }
.s-cap__count { display: none; }

.s-cap__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cap;
  border-top: var(--hairline) solid var(--rule-strong);
}
.s-cap__item {
  position: relative;
  counter-increment: cap;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  align-items: baseline;
  padding-block: var(--space-5);
  border-bottom: var(--hairline) solid var(--rule);
}
.s-cap__item::before {
  content: counter(cap, upper-roman);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-ui);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  color: var(--accent);
}
/* a short gilt rule over the numeral of the entry reached */
.s-cap__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--hairline));
  width: 2.75rem;
  height: var(--hairline);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.s-cap__item:first-child::after { transform: none; }
.s-cap__name {
  grid-column: 2;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}
.s-cap__text { grid-column: 2; max-width: 34rem; color: var(--fg-soft); }

@media (min-width: 960px) {
  .s-cap__body { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--space-8); align-items: start; }
  .s-cap__head { position: sticky; top: 16vh; }
  .s-cap__item { grid-template-columns: 4rem minmax(0, 1fr); padding-block: var(--space-6); }
  .s-cap__item::after { width: 4rem; }
  .s-cap__name { font-size: var(--fs-h2); line-height: var(--lh-heading); }
}

/* the counter beside the list: which entry the visitor has reached, of how many */
.s-cap__count {
  width: 6rem;
  margin-top: var(--space-7);
  padding-top: var(--space-3);
  border-top: var(--hairline) solid var(--accent);
  font-size: var(--fs-label);
  font-weight: var(--fw-ui);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  color: var(--fg-muted);
}
.s-cap__count [data-one-now] { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  html.js:not([data-motion="off"]):not([data-motion-preset="still"]) .s-cap__body.is-live .s-cap__count { display: block; }
  html.js:not([data-motion="off"]):not([data-motion-preset="still"]) .s-cap__body.is-live .s-cap__item {
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  html.js:not([data-motion="off"]):not([data-motion-preset="still"]) .s-cap__body.is-live .s-cap__item:not(.is-in) {
    opacity: .14;
    transform: translateY(12px);
  }
  html.js:not([data-motion="off"]):not([data-motion-preset="still"]) .s-cap__body.is-live .s-cap__item::after {
    transform: scaleX(0);
    transition: transform 600ms var(--ease);
  }
  html.js:not([data-motion="off"]):not([data-motion-preset="still"]) .s-cap__body.is-live .s-cap__item.is-on::after { transform: none; }
}
