/* How we work, v3. The buyer's five steps, listed on the left and opened one at a time; on the right
   a stage with no frame, as wide as the screen allows, with one scene per step: the intro call, the
   shortlist of three vetted engineers, the buyer's own interview, the stand-up with his first pull
   request. Step 5 (the terms) is written only. Pinned and scrubbed on large screens, a loop elsewhere.
   The copy keeps the page's left edge; the stage runs to the right edge of the screen. */

.howw { overflow: hidden; padding-block: clamp(72px, 10vw, 140px); }
.howw .hw-pin {
  display: grid; grid-template-columns: minmax(0, clamp(340px, 30vw, 520px)) minmax(0, 1fr);
  gap: clamp(40px, 4.2vw, 80px); align-items: center;
  padding-left: max(var(--side), calc((100vw - var(--max)) / 2 + var(--side)));
  padding-right: var(--side);
}
.howw.is-pin { padding: 0; }
.howw.is-pin .hw-pin { box-sizing: border-box; height: 100vh; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 28px; }
.howw .sh-t { font-size: clamp(24px, 2.1vw, 34px); margin-bottom: clamp(14px, 2.6svh, 28px); }

/* ---------- the steps ---------- */
.hw-steps { list-style: none; border-top: 1px solid var(--line-d); }
.hw-step { padding: clamp(10px, 1.6svh, 15px) 0; border-bottom: 1px solid var(--line-d); color: #6f747c; transition: color .4s; cursor: pointer; }
.hw-when { display: block; font: 500 12.5px/1.4 var(--f-code); letter-spacing: .02em; color: #5d6168; transition: color .4s; }
.hw-step h3 { margin-top: 3px; font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.35vw, 21px); letter-spacing: -.035em; line-height: 1.3; }
.hw-body p { margin-top: 8px; font-size: 15px; line-height: 1.55; max-width: 48ch; color: var(--mute-d); }
.hw-step.is-on { color: var(--white); }
.hw-step.is-on .hw-when { color: var(--orange); }
.howw.is-pin .hw-body, .howw.is-loop .hw-body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .4s; }
.howw.is-pin .hw-step.is-on .hw-body, .howw.is-loop .hw-step.is-on .hw-body { max-height: 16em; opacity: 1; }

.hw-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14.5px; font-weight: 500; color: var(--white); text-decoration: none; }
.hw-link svg { width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.hw-link:hover svg { transform: translateX(3px); }
.hw-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.hw-proof { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13.5px; color: var(--white); background: rgba(43, 182, 115, .14); }
.hw-body .hw-proof { margin-top: 0; }
.hw-proof b { color: #5fd6a0; font-weight: 600; }
.hw-trust .clutch { color: var(--white); text-decoration: none; }
.hw-trust .clutch-b { font-size: 17px; }
.hw-trust .clutch .stars i { width: 11px; height: 11px; }
.hw-copy .btn { margin-top: clamp(16px, 2.8svh, 28px); }

/* ---------- the stage: no frame, one scene at a time ---------- */
.hw-stage { position: relative; align-self: stretch; min-height: 420px; font-family: var(--f-text); color: var(--white); }
.hw-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2svh, 18px); visibility: hidden; }
.hw-s1 { visibility: visible; }
.hw-scene > * { flex-shrink: 0; }

.hw-tick { flex: none; position: relative; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hw-tick svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; background: var(--run); }
.hw-tick path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hw-callwin, .hw-team { border-radius: 14px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px var(--line-d), 0 30px 60px -30px #000; }
.hw-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #161719; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.hw-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); }
.hw-time { margin-left: auto; font: 500 12px var(--f-code); color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.hw-lbl { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .55); white-space: nowrap; }
.hw-speaking { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; gap: 2px; align-items: flex-end; height: 12px; padding: 5px 6px; box-sizing: content-box; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.hw-speaking i { width: 3px; height: 100%; border-radius: 2px; background: #5fd6a0; animation: hw-talk 1s ease-in-out infinite; }
.hw-speaking i:nth-child(2) { animation-delay: .2s; }
.hw-speaking i:nth-child(3) { animation-delay: .4s; }
@keyframes hw-talk { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.hw-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 1 · intro call */
.hw-callmain { position: relative; aspect-ratio: 16 / 9; }
.hw-pip { position: absolute; right: 12px; bottom: 12px; width: 24%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22), 0 12px 30px -10px #000; }
.hw-pip img, .hw-pip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hw-pip .hw-lbl { left: 6px; bottom: 6px; font-size: 11px; }
/* the conversation: whoever talks gets the green ring and the bars; live captions, since the page is muted */
.hw-callmain [data-hw-hear], .hw-pip [data-hw-say] { opacity: 0; }
.hw-callmain::after, .hw-pip::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 2px #5fd6a0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.hw-callmain.is-talking::after, .hw-pip.is-talking::after { opacity: 1; }
.hw-callmain > .hw-speaking, .hw-pip > .hw-speaking { opacity: 0; transition: opacity .25s; }
.hw-callmain.is-talking > .hw-speaking, .hw-pip.is-talking > .hw-speaking { opacity: 1; }
.hw-pip > .hw-speaking { left: 6px; top: 6px; transform: scale(.85); transform-origin: 0 0; }
.hw-pip { z-index: 1; }
.hw-cc {
  position: absolute; left: 50%; bottom: 12px; z-index: 1; width: min(62%, 520px); transform: translateX(-62%);
  padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: #fff;
  background: rgba(10, 10, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s;
}
.hw-cc.is-on { opacity: 1; }
.hw-cc b { margin-right: 7px; font-weight: 600; color: #9cc0ff; }
.hw-brief { padding: clamp(14px, 1.3vw, 18px) clamp(14px, 1.4vw, 20px); border-radius: 16px; background: #141518; box-shadow: inset 0 0 0 1px var(--line-d), 0 30px 60px -30px #000; }
.hw-brief-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hw-brief-h b { font: 500 clamp(15px, 1.1vw, 17px)/1.3 var(--f-display); letter-spacing: -.02em; }
.hw-brief-h span { font-size: 12.5px; color: var(--mute-d); }
.hw-brief-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hw-brief-row span { padding: 5px 11px; border-radius: 999px; font: 500 12.5px var(--f-code); background: rgba(1, 96, 231, .2); color: #9cc0ff; }
.hw-brief-row .is-role { font-family: var(--f-text); font-weight: 600; background: rgba(255, 255, 255, .1); color: var(--white); }
.hw-brief-row .is-plain { font-family: var(--f-text); background: none; color: var(--mute-d); box-shadow: inset 0 0 0 1px var(--line-d); }

/* 2 · the shortlist */
.hw-sl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hw-sl-t { display: flex; align-items: center; gap: 10px; }
.hw-sl-t b { font: 500 clamp(17px, 1.3vw, 21px)/1.2 var(--f-display); letter-spacing: -.03em; }
.hw-sl-t span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); white-space: nowrap; }
.hw-sl-from { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute-d); white-space: nowrap; }
.hw-sl-from img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.hw-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.hw-cand { position: relative; border-radius: 18px; overflow: hidden; background: #141518; box-shadow: inset 0 0 0 1px var(--line-d), 0 30px 60px -30px #000; }
.hw-cand-ph { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.hw-cand-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hw-cand-ph::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, #141518, transparent); }
.hw-vetted {
  position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(12, 12, 14, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hw-cand-in { padding: 4px clamp(12px, 1.1vw, 18px) clamp(14px, 1.3vw, 18px); }
.hw-cand-n { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hw-cand-n b { font: 500 clamp(15px, 1.15vw, 18px)/1.25 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.hw-cand-n span { font-size: 12.5px; color: var(--mute-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-cand-r { margin-top: 2px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.hw-cand-ok { list-style: none; display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-d); }
.hw-cand-ok li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.hw-cand-st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hw-cand-st span { padding: 4px 9px; border-radius: 999px; font: 500 12px var(--f-code); background: rgba(1, 96, 231, .2); color: #9cc0ff; }

/* the flight of the chosen photo from his card into the interview */
.hw-flyer { position: absolute; left: 0; top: 0; z-index: 4; width: 10px; max-width: none; height: 10px; object-fit: cover; object-position: 50% 50%; visibility: hidden; pointer-events: none; }

/* 3 · the interview: you and him, side by side */
.hw-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; }
.hw-duo-t { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #111; }
.hw-duo-t.is-talking { box-shadow: inset 0 0 0 2px #5fd6a0; }
.hw-feed { position: absolute; inset: 0; }
.hw-hire { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #141518; box-shadow: inset 0 0 0 1px var(--line-d), 0 30px 60px -30px #000; }
.hw-hire > img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.hw-hire-who { min-width: 0; }
.hw-hire-who b { display: block; font: 500 16px/1.25 var(--f-display); letter-spacing: -.02em; }
.hw-hire-who span { font-size: 13px; color: var(--mute-d); }
.hw-hire-vet { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.hw-hire-swap { display: inline-grid; margin-left: auto; }
.hw-hire-swap > * { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hw-hire-btn { background: var(--orange); color: #fff; }
.hw-hire-ok { background: rgba(43, 182, 115, .16); color: #5fd6a0; opacity: 0; }
.hw-cursor { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: flex-start; color: var(--blue); pointer-events: none; }
.hw-cursor svg { width: 20px; height: 22px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.hw-cursor b { margin: 15px 0 0 -2px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--blue); color: #fff; }

/* 4 · the stand-up and the first pull request */
.hw-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 5px; }
.hw-tile { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.hw-tile.is-talking::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px #5fd6a0; pointer-events: none; }
/* two teammates come from one recorded team call: show only their own square of it */
.hw-tile-crop video { inset: 0 auto auto var(--cx); width: 302.6%; max-width: none; height: 202.7%; object-fit: fill; }
.hw-tile .hw-lbl { left: 7px; bottom: 7px; padding: 2px 7px; font-size: 11.5px; }

.hw-pr { padding: clamp(14px, 1.4vw, 20px); border-radius: 16px; background: #141518; box-shadow: inset 0 0 0 1px var(--line-d), 0 30px 60px -30px #000; }
.hw-pr-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.hw-pr-t b { font: 500 clamp(15px, 1.15vw, 18px)/1.3 var(--f-display); letter-spacing: -.02em; }
.hw-pr-n { font-size: 15px; color: var(--mute-d); }
.hw-pr-swap { display: inline-grid; }
.hw-pr-swap > * { grid-area: 1 / 1; }
.hw-pr-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #8250df; }
.hw-pr-state.is-open { background: #238636; }
.hw-pr-state svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.hw-pr-sub { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--mute-d); white-space: nowrap; }
.hw-pr-sub img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.hw-pr-sub b { color: var(--white); font-weight: 600; }
.hw-pr-sub code { padding: 1px 6px; border-radius: 5px; font: 500 12px var(--f-code); background: rgba(1, 96, 231, .2); color: #9cc0ff; }
.hw-pr-week { margin-left: auto; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(43, 182, 115, .16); color: #5fd6a0; }
.hw-diff { margin-top: 14px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-d); }
.hw-file { display: flex; gap: 10px; padding: 8px 12px; font: 500 12.5px var(--f-code); background: #1b1c20; color: rgba(255, 255, 255, .85); }
.hw-file .add { margin-left: auto; color: #5fd6a0; }
.hw-file .del { color: #f38b8e; }
.hw-diff pre { margin: 0; padding: 6px 0; overflow: hidden; font: 12.5px/1.7 var(--f-code); background: #0f1012; color: rgba(255, 255, 255, .78); }
.hw-diff .l { display: block; padding: 0 12px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.hw-diff .l.add { background: rgba(43, 182, 115, .13); color: #c3f1d9; }
.hw-diff .l.del { background: rgba(229, 72, 77, .13); color: #f4b7b9; }
.hw-review { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.hw-review img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.hw-rv-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute-d); }
.hw-rv-h b { color: var(--white); font-weight: 600; }
.hw-ok { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(43, 182, 115, .16); color: #5fd6a0; }
.hw-rv-t { margin-top: 4px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.hw-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-d); }
.hw-checks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

/* ---------- short laptop screens: the five steps, the open one and the button still fit ---------- */
@media (max-height: 840px) {
  .howw.is-pin .sh-t { font-size: clamp(21px, 1.8vw, 27px); margin-bottom: 12px; }
  .howw.is-pin .hw-step { padding: 7px 0; }
  .howw.is-pin .hw-step h3 { font-size: 17px; }
  .howw.is-pin .hw-body p { font-size: 14px; line-height: 1.5; margin-top: 6px; }
  .howw.is-pin .hw-link { margin-top: 6px; }
}

/* ---------- in flow: tablets and phones (the story loops above the steps) ---------- */
/* above the looping stage, which step it is showing (the written steps sit below, out of sight) */
.hw-now { display: none; }
@media (max-width: 959px) {
  .howw .hw-pin { grid-template-columns: 1fr; padding-left: var(--side); }
  .hw-stage { order: -1; margin-bottom: 8px; }
  .howw.is-loop .hw-now { order: -2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: -18px; }
  .hw-now-bar { display: flex; gap: 4px; flex-basis: 100%; margin-bottom: 8px; }
  .hw-now-bar i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .4s; }
  .hw-now-bar i.is-done { background: var(--orange); }
  .hw-now-when { font: 500 12.5px/1.4 var(--f-code); color: var(--orange); }
  .hw-now b { font: 500 17px/1.3 var(--f-display); letter-spacing: -.03em; }
  .howw.is-loop .hw-scene { justify-content: flex-start; }
  .howw .sh-t { font-size: clamp(24px, 4.6vw, 34px); }
}
/* The title first, then the stage under the name of its step, then the written steps. With the stage on
   top, the section opened on a video call with no title over it (Alan, 2026-11-19). The text column is
   dissolved so that its three parts take their own place in the page. */
@media (max-width: 959px) {
  .howw .hw-pin { row-gap: 28px; }
  .howw .hw-copy { display: contents; }
  .howw .sh-pair { order: -3; }
  .howw .hw-stage { margin-bottom: 0; }
  .howw.is-loop .hw-now { margin-bottom: -10px; }
  .howw .hw-copy .btn { justify-self: start; margin-top: 0; }
}
@media (max-width: 640px) {
  .hw-bar { height: 32px; font-size: 11.5px; }
  .hw-lbl { left: 6px; bottom: 6px; padding: 2px 6px; font-size: 10.5px; }
  .hw-speaking { left: 6px; top: 6px; }
  .hw-pip { right: 8px; bottom: 8px; width: 30%; }
  .hw-pip .hw-lbl { font-size: 9.5px; }
  .hw-cc { bottom: 8px; width: 58%; transform: translateX(-66%); padding: 5px 8px; font-size: 11.5px; line-height: 1.35; }
  .hw-brief-row span { padding: 4px 9px; font-size: 11.5px; }
  .hw-sl-from { display: none; }
  /* the three cards become three rows: photo left, the checks right */
  .hw-cands { grid-template-columns: 1fr; gap: 8px; }
  .hw-cand { display: grid; grid-template-columns: 84px minmax(0, 1fr); border-radius: 14px; }
  .hw-cand-ph { aspect-ratio: auto; position: static; }
  .hw-cand-ph img { position: absolute; inset: 0 auto 0 0; width: 84px; height: 100%; }
  .hw-cand-ph::after { display: none; }
  .hw-vetted { left: auto; right: 8px; top: 8px; padding: 3px 9px 3px 4px; font-size: 11.5px; }
  .hw-cand-in { padding: 10px 12px 11px; }
  .hw-cand-n span { display: none; }
  .hw-cand-r { font-size: 12.5px; }
  .hw-cand-ok { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; padding-top: 0; border-top: 0; }
  .hw-cand-ok li { font-size: 12.5px; gap: 6px; }
  .hw-cand-st { margin-top: 7px; gap: 4px; }
  .hw-cand-st span { padding: 2px 7px; font-size: 11px; }
  .hw-hire { gap: 10px; padding: 10px 12px; }
  .hw-hire > img { width: 36px; height: 36px; }
  .hw-hire-who b { font-size: 14.5px; }
  .hw-hire-who span, .hw-hire-vet { display: none; }
  .hw-hire-swap > * { padding: 8px 14px; font-size: 13px; }
  .hw-tiles { gap: 3px; padding: 3px; }
  .hw-tile .hw-lbl { left: 4px; bottom: 4px; padding: 1px 5px; font-size: 9.5px; }
  .hw-pr-t b { font-size: 14.5px; }
  .hw-pr-sub { font-size: 12px; }
  .hw-pr-sub code { display: none; }
  .hw-diff pre { font-size: 10.5px; }
  .hw-diff .l:first-child, .hw-diff .l.is-x { display: none; }
  .hw-rv-t { display: none; }
  .hw-review { align-items: center; }
  .hw-checks { gap: 6px 14px; }
  .hw-checks li { font-size: 12.5px; }
}

/* ---------- without scripts or with reduced motion: every step open, the shortlist on the stage ---------- */
.howw.is-still .hw-step { color: var(--white); }
.howw.is-still .hw-stage { min-height: 0; }
.howw.is-still .hw-scene { display: none; }
.howw.is-still .hw-s2 { display: flex; position: static; visibility: visible; }
.howw.is-still .hw-flyer, .howw.is-still .hw-cursor { display: none; }
