/* Version B: three audiences, one crowd */

.b-story {
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 80px);
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.b-hero {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) 0 48px;
}

.b-hero h1 {
  max-width: 12ch;
}

.b-hero .lede {
  max-width: 40ch;
  margin-top: clamp(20px, 2.4vw, 32px);
}

.b-stage {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100svh;
}

.b-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.b-stage .source {
  position: absolute;
  left: 0;
  bottom: 20px;
}

.b-steps {
  grid-column: 1;
  grid-row: 2;
}

.b-step {
  min-height: 100svh;
  padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 6vw, 80px);
}

.b-q {
  max-width: 26ch;
  margin-top: 20px;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.b-text {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--ink-2);
}

.b-cases {
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule-ink);
}

.b-cases li {
  border-top: 1px solid var(--rule-ink);
}

.b-cases button {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 0 18px 28px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.b-cases button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot);
  transition:
    background-color 0.2s ease-out,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-cases b {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.2s ease-out;
}

.b-cases span {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.b-cases button:hover::before,
.b-cases button:focus-visible::before,
.b-cases button[aria-pressed="true"]::before {
  background: var(--accent);
  transform: scale(1.35);
}

.b-cases button[aria-pressed="true"] b {
  text-decoration-color: var(--accent);
}

.b-lead {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}

.b-bio {
  max-width: 44ch;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (max-width: 991px) {
  .b-story {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .b-hero {
    min-height: 0;
    padding: calc(var(--nav-h) + 48px) 0 32px;
  }

  .b-stage {
    grid-column: 1;
    grid-row: auto;
    top: var(--bar-h);
    z-index: 2;
    height: 46svh;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .b-stage .source {
    left: var(--gutter);
    bottom: 8px;
  }

  .b-steps {
    grid-column: 1;
    grid-row: auto;
  }

  .b-step {
    min-height: 0;
    padding: 56px 0 24px;
  }
}
