/* Who We Are: six short value rows beside the photographs that belong to
   them. The active row opens its copy below the title; the image changes in
   the shared frame so the section stays quiet and easy to scan. */
.ab-beliefs {
  --belief-ink: #17131c;
  --belief-muted: #716b77;
  --belief-purple: #5f3c91;
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 9vw, 9rem) var(--ab-gutter, 1.25rem);
  background: #fff;
  color: var(--belief-ink);
}
.ab-beliefs__head {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ab-beliefs__eyebrow {
  margin: 0 0 1rem;
  color: var(--belief-purple);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ab-beliefs__head h2 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.25vw, 4.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.ab-beliefs__content {
  display: grid;
  gap: 2rem;
  padding-top: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}
.ab-beliefs__visual {
  position: relative;
  overflow: hidden;
  width: 80%;
  aspect-ratio: 1;
  margin-inline: auto;
  background: #eeeaf2;
}
.ab-beliefs__visual-item {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .72s cubic-bezier(.22, 1, .36, 1), opacity .15s linear .62s;
}
.ab-beliefs__visual-item.is-active {
  z-index: 2;
  opacity: 1;
  clip-path: inset(0);
  transition: clip-path .72s cubic-bezier(.22, 1, .36, 1), opacity .12s linear;
}
.ab-beliefs__visual-item.is-leaving {
  z-index: 1;
  opacity: 0;
  clip-path: inset(0);
  transition: opacity .72s cubic-bezier(.22, 1, .36, 1);
}
.ab-beliefs__visual-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-beliefs__list { margin: 0; padding: 0; list-style: none; }
.ab-belief { border-bottom: 1px solid rgba(23, 19, 28, .13); }
.ab-belief:first-child { border-top: 1px solid rgba(23, 19, 28, .13); }
.ab-belief__head {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: .5rem 1rem;
  width: 100%;
  min-height: 5.5rem;
  padding: .9rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ab-belief__num {
  align-self: start;
  padding-top: .55rem;
  color: #766f7c;
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
}
.ab-belief__title {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.ab-belief__lead { color: var(--belief-purple); font-style: italic; }
.ab-belief__toggle {
  position: relative;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #f1edf5;
  transition: background .25s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.ab-belief__toggle::before,
.ab-belief__toggle::after {
  content: "";
  position: absolute;
  width: .72rem;
  height: 1.5px;
  background: var(--belief-ink);
}
.ab-belief__toggle::after { transform: rotate(90deg); transition: transform .3s ease; }
.ab-belief__head:hover .ab-belief__toggle,
.ab-belief.is-active .ab-belief__toggle { background: #e8e0ef; }
.ab-belief.is-open .ab-belief__toggle::after { transform: rotate(0); }
.ab-belief__head:focus-visible { outline: 2px solid var(--belief-purple); outline-offset: 3px; }
.ab-belief__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.22, 1, .36, 1);
}
.ab-belief.is-open .ab-belief__panel { grid-template-rows: 1fr; }
.ab-belief__inner {
  min-height: 0;
  overflow: hidden;
  padding-left: 3rem;
  opacity: 0;
  transform: translateY(-.3rem);
  transition: opacity .25s ease, transform .35s ease, padding-bottom .35s ease;
}
.ab-belief__image {
  display: none;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0 0 1rem;
  background: #eeeaf2;
}
.ab-belief__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-belief.is-open .ab-belief__inner {
  padding-bottom: 1.35rem;
  opacity: 1;
  transform: none;
}
.ab-belief__para { max-width: 42rem; margin: 0; color: #514b57; font-size: 1rem; line-height: 1.65; }

@media (max-width: 899px) {
  .ab-beliefs__visual { display: none; }
  .ab-belief.is-open .ab-belief__image { display: block; }
}

@media (min-width: 900px) {
  .ab-beliefs__content { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
  .ab-beliefs__visual { position: sticky; top: 8rem; }
  .ab-beliefs__list { align-self: center; }
  .ab-belief__head { grid-template-columns: 2rem minmax(0, 1fr) 2.5rem; min-height: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-beliefs__visual-item, .ab-belief__toggle, .ab-belief__toggle::after,
  .ab-belief__panel, .ab-belief__inner { transition: none; }
}
