/* ==========================================================================
   Careers · 2 — Why the work matters
       Why the work matters
       What you build here is used on a motorbike …
       ┌──────────────────────────┐   ● Your work at Finflow
       │ "A world where all       │   │
       │  underserved …"          │   ● Loan officers in the field
       │  Our vision              │   │  …
       └──────────────────────────┘   ◉ The clients they serve
   The approved vision as a quote; beside it, how far one day of work
   travels. On arrival (.is-visible, reveal.js) the line draws down and the
   stops land one by one; the last stop, the clients, is filled in accent.
   Prefixed .wm- and scoped to .wm.
   ========================================================================== */

.wm {
  padding: clamp(72px, 9vw, 120px) var(--page-px);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.wm-inner { max-width: var(--container); margin: 0 auto; }
.wm-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.wm-title { font-size: var(--fs-section-title); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.wm-title em { font-style: normal; color: var(--accent); }
.wm-sub { margin-top: 14px; font-size: var(--fs-section-sub); line-height: 1.6; color: var(--text-secondary); text-wrap: balance; }

.wm-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* the vision */
.wm-quote { margin: 0; padding-left: clamp(20px, 2.4vw, 32px); border-left: 3px solid var(--accent); }
.wm-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; color: var(--text-primary); text-wrap: balance; }
.wm-quote blockquote::before { content: '\201C'; }
.wm-quote blockquote::after { content: '\201D'; }
.wm-quote figcaption { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* where the work lands */
.wm-chain { position: relative; display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.wm-chain::before {
  content: '';
  position: absolute;
  left: 21px; top: 22px; bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--border-strong), var(--accent));
  transform-origin: top;
}
.wm-step { position: relative; display: flex; align-items: center; gap: 16px; }
.wm-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--accent);
  font-size: 19px;
}
.wm-label { font-size: 16.5px; font-weight: 500; color: var(--text-primary); }
.wm-step--end .wm-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
:root[data-theme="dark"] .wm-step--end .wm-dot { color: #061530; }
.wm-step--end .wm-label { font-weight: 600; color: var(--accent-text); }

/* arrival: the line draws down, the stops land in turn */
html.has-js .wm-chain:not(.is-visible)::before { transform: scaleY(0); }
html.has-js .wm-chain:not(.is-visible) .wm-step { opacity: 0; transform: translateY(6px); }
.wm-chain.is-visible::before { transition: transform 1.1s cubic-bezier(0.45, 0, 0.25, 1) 0.15s; }
.wm-chain.is-visible .wm-step { transition: opacity 0.4s ease, transform 0.4s var(--ease-out); transition-delay: calc(0.2s + var(--i) * 0.22s); }

@media (max-width: 860px) {
  .wm-body { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wm-chain.is-visible::before, .wm-chain.is-visible .wm-step { transition: none; }
}
