/* ===== wb-first: picking the first one, then the page's last word. Three short lists of equal width: the two
   that say what fits open on a lit tread; "when it's the wrong tool" stands on its own quieter ground and reads
   as cases with their reasons. The closing statement stands on the page's ground beside one drawing, a sibling
   of the hero's steps: the first step alone, solid and lit, the next two only outlined. The contact form's band
   is the ground beneath. Still: only hover and focus. ===== */
.wb-first {
  --wb-f-edge: color-mix(in oklab, var(--color-dawn-2) 80%, var(--color-paper-2));
  --wb-f-d: 14px;
  position: relative; isolation: isolate;
  padding-block: var(--section-gap-s) 0;
  border-bottom: 1px solid var(--wb-f-edge);
}
/* low warm light where the statement meets the ground */
.wb-first::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none;
  background: radial-gradient(50% 70% at 30% 100%, color-mix(in oklab, var(--color-dawn-2) 10%, transparent), transparent 72%);
}
.wb-first__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.wb-first__line { max-width: 36ch; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); padding-bottom: 0.2em; }

/* ===== the three lists ===== */
.wb-first__lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.wb-first__col { position: relative; min-width: 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-2); }
/* each list opens on a short lit tread */
.wb-first__col::before { content: ""; position: absolute; top: -2px; left: 0; width: var(--space-2xl); height: 3px; background: var(--color-ink); }
.wb-first__title { font-size: var(--text-title); line-height: 1.2; }
.wb-first__items { margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.wb-first__items li { padding-block: var(--space-sm); color: var(--color-ink-2); max-width: 40ch; text-wrap: pretty; }
.wb-first__items li + li { border-top: 1px solid var(--color-rule); }
/* the wrong tool: same width and heading, its own ground, each line a case and its reason */
.wb-first__col--not { padding-inline: var(--space-lg); padding-bottom: var(--space-md); background: var(--color-paper-2); color: var(--color-ink); }
.wb-first__col--not::before { left: var(--space-lg); background: none; border: 1px solid var(--color-muted); box-sizing: border-box; }
.wb-first__case { display: block; margin-bottom: var(--space-2xs); font-weight: 500; color: var(--color-ink); }
.wb-first__col--not .wb-first__items li + li { border-top-color: var(--color-rule-2); }

/* ===== sizing and the two ways ===== */
.wb-first__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap-columns); align-items: center; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.wb-first__size { max-width: 60ch; color: var(--color-ink); }
.wb-first__ways { color: var(--color-ink-2); }
.wb-first__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); }

/* ===== the page's last word, and the first step ===== */
.wb-first__end { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--gap-columns); align-items: end; margin-top: var(--space-3xl); }
.wb-first__close {
  padding-bottom: var(--space-2xl); max-width: 26ch;
  font-family: var(--font-display); font-size: var(--text-section); font-stretch: var(--display-stretch); font-weight: var(--display-weight);
  line-height: 1.08; letter-spacing: var(--tracking-display); color: var(--color-ink); text-wrap: balance;
}

.wb-first__steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; height: 232px; }
.wb-first__steps::before {
  content: ""; position: absolute; z-index: -1; left: -30%; right: -10%; bottom: 0; height: 120%;
  background: radial-gradient(45% 55% at 22% 100%, color-mix(in oklab, var(--color-dawn-2) 30%, transparent), transparent 72%);
}
.wb-first__step { display: block; }
.wb-first__step--1 {
  height: calc(72px + var(--wb-f-d));
  background:
    linear-gradient(to right, transparent calc(100% - var(--wb-f-d)), color-mix(in oklab, var(--color-paper) 70%, var(--color-paper-2)) calc(100% - var(--wb-f-d))),
    linear-gradient(to bottom, color-mix(in oklab, var(--color-accent-2) 42%, var(--color-paper-3)) var(--wb-f-d), var(--color-dawn) var(--wb-f-d), var(--color-dawn) calc(var(--wb-f-d) + 1px), transparent calc(var(--wb-f-d) + 1px)),
    linear-gradient(to bottom, color-mix(in oklab, var(--color-accent-2) 34%, var(--color-paper-3)), var(--color-paper-2) 90%);
  clip-path: polygon(0 var(--wb-f-d), var(--wb-f-d) 0, 100% 0, 100% calc(100% - var(--wb-f-d)), calc(100% - var(--wb-f-d)) 100%, 0 100%);
}
.wb-first__step--2, .wb-first__step--3 { border: 1px dashed color-mix(in oklab, var(--color-rule-2) 70%, var(--color-paper)); border-bottom: 0; border-left: 0; }
.wb-first__step--2 { height: 150px; }
.wb-first__step--3 { height: 214px; }

@media (max-width: 72rem) {
  .wb-first__lists { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .wb-first__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); }
  .wb-first__items li:nth-child(2) { border-top: 0; }
  .wb-first__steps { height: 176px; }
  .wb-first__step--1 { height: calc(56px + var(--wb-f-d)); }
  .wb-first__step--2 { height: 116px; }
  .wb-first__step--3 { height: 176px; }
}
@media (max-width: 60rem) {
  .wb-first__head, .wb-first__foot { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .wb-first__head { margin-bottom: var(--space-xl); }
  .wb-first__end { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2xl); }
  .wb-first__close { padding-bottom: var(--space-xl); }
  .wb-first__steps { width: min(100%, 320px); justify-self: end; }
}
@media (max-width: 40rem) {
  .wb-first__items { grid-template-columns: minmax(0, 1fr); }
  .wb-first__items li:nth-child(2) { border-top: 1px solid var(--color-rule); }
}
