/* Process film (3 scenes) and the hiring funnel (100 people, 1 stays). */

/* ================= PROCESS ================= */
.process { padding-block: clamp(80px, 11vw, 160px); overflow: hidden; }
.process-pin {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--side);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 80px); align-items: center;
}
.process .h2 { font-size: clamp(28px, 3vw, 46px); margin-bottom: clamp(20px, 4svh, 44px); }
.psteps { border-top: 1px solid var(--line-d); margin-bottom: clamp(20px, 3.4svh, 36px); }
.pstep { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: clamp(10px, 1.8svh, 16px) 0; border-bottom: 1px solid var(--line-d); color: #6f747c; transition: color .4s; }
.pstep-n { font-family: var(--f-display); font-size: 14px; line-height: 1.75; transition: color .4s; }
.pstep h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.035em; line-height: 1.3; }
.pstep p { margin-top: 8px; font-size: 15px; line-height: 1.55; max-width: 46ch; color: var(--mute-d); }
.pstep.is-on { color: var(--white); }
.pstep.is-on .pstep-n { color: var(--orange); }
.process.is-pin { padding: 0; }
.process.is-pin .process-pin { height: 100vh; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 24px; }
.process.is-pin .pstep p { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .6s var(--ease-out), opacity .4s, margin-top .6s; }
.process.is-pin .pstep.is-on p { max-height: 7em; opacity: 1; margin-top: 8px; }

.pstage {
  position: relative; width: 100%; aspect-ratio: 16 / 11;
  max-height: calc(100vh - var(--nav-h) - 56px);
  justify-self: end;
  border-radius: 22px; overflow: hidden;
  background: #0e0e0f;
  box-shadow: inset 0 0 0 1px var(--line-d);
}
.process.is-pin .pstage { width: auto; height: min(calc(100vh - var(--nav-h) - 56px), calc((100vw - 2 * var(--side)) * .58 * 11 / 16)); }
.scene { position: absolute; inset: 0; }
.scene + .scene { opacity: 0; visibility: hidden; }

/* scene 1: the call + the map of what you need */
.call { position: absolute; left: 5%; top: 7%; width: 64%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-d), 0 30px 60px -30px #000; }
.call-main, .call-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-speaking { position: absolute; left: 12px; top: 12px; display: flex; gap: 2px; align-items: flex-end; height: 14px; padding: 5px 6px; box-sizing: content-box; border-radius: 6px; background: rgba(0,0,0,.45); }
.call-speaking i { width: 3px; height: 100%; border-radius: 2px; background: #5fd6a0; animation: talk 1s ease-in-out infinite; }
.call-speaking i:nth-child(2) { animation-delay: .2s; }
.call-speaking i:nth-child(3) { animation-delay: .4s; }
@keyframes talk { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.call-pip { position: absolute; right: 12px; bottom: 56px; width: 25%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 12px 30px -10px #000; }
.call-pip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.call-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(0deg, rgba(0,0,0,.66), rgba(0,0,0,0)); }
.call-time { font: 500 13px var(--f-code); color: #fff; font-variant-numeric: tabular-nums; }
.call-ctrls { display: flex; gap: 8px; }
.call-ctrls i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.call-ctrls svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-ctrls .call-end { background: #e5484d; }
.call-ctrls .call-end svg { fill: #fff; stroke: none; }

.map {
  position: absolute; right: 5%; bottom: 8%; width: 42%;
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-d), 0 30px 60px -30px #000;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.map-chip { padding: 6px 11px; border-radius: 999px; background: rgba(1,96,231,.2); color: #9cc0ff; font: 500 12.5px var(--f-code); }
.map-gap { flex-basis: 100%; height: 1px; margin: 6px 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 5px, transparent 5px 9px); transform-origin: left center; }
.map-need { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--orange); }
.map-need img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 26%; transform: scale(2.2); transform-origin: 80% 26%; }

/* scene 2: hand-picked profiles, you approve the fit */
.profiles { position: absolute; inset: 9% 5% 12%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile { --pick: 0; position: relative; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px rgba(236, 98, 25, var(--pick, 0)), 0 0 0 1px var(--line-d); }
.profile img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) 30%; }
.profile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0) 42%); }
.profile-stack { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-stack b { font: 500 11.5px var(--f-code); padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.profile-ok { position: absolute; z-index: 3; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; transform: scale(0); }
.profile-ok svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cursor { position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: flex-start; pointer-events: none; will-change: transform; }
.cursor svg { width: 22px; height: 22px; fill: #fff; stroke: #000; stroke-width: 1.2; stroke-linejoin: round; }
.cursor b { margin: 16px 0 0 -2px; padding: 3px 8px; border-radius: 6px; background: var(--orange); color: #fff; font: 600 12px var(--f-text); }

/* scene 3: in your sprint from day one, with tracking */
.sprint { position: absolute; left: 5%; top: 8%; width: 58%; height: 58%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sprint-col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.sprint-h { font: 600 12px var(--f-text); color: var(--mute-d); padding: 2px 4px 4px; }
.card { position: relative; height: clamp(26px, 13%, 40px); border-radius: 8px; background: rgba(255,255,255,.08); flex: none; }
.card::before { content: ""; position: absolute; left: 10px; right: 30%; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: rgba(255,255,255,.14); }
.card[data-move] { z-index: 3; background: #2a1a10; box-shadow: inset 0 0 0 1px rgba(236,98,25,.6); will-change: transform; }
.card[data-move]::before { left: 40px; background: rgba(236,98,25,.45); }
.card[data-move] img { position: absolute; left: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; object-fit: cover; object-position: 80% 25%; }
.card-slot { background: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.card-slot::before { display: none; }
.track { position: absolute; left: 5%; right: 5%; bottom: 8%; height: 22%; }
.track svg { width: 100%; height: 100%; overflow: visible; }
.track-line { fill: none; stroke: var(--orange); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.track-area { fill: rgba(236, 98, 25, .1); }
.track-ms { position: absolute; left: var(--x); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg) scale(0); background: var(--orange); box-shadow: 0 0 0 3px #0e0e0f; }
.tile-me { position: absolute; right: 5%; top: 8%; width: 28%; height: 58%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px var(--orange); }
.tile-me video { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }

@media (max-width: 959px), (max-height: 559px) {
  .process-pin { grid-template-columns: 1fr; }
  .pstage { order: -1; justify-self: stretch; max-height: none; }
}
@media (max-width: 600px) {
  .map { width: 56%; padding: 10px; gap: 5px; }
  .map-chip { font-size: 10.5px; padding: 4px 7px; }
  .map-need { width: 34px; height: 34px; }
  .call { width: 74%; }
  .call-bar { height: 36px; }
  .call-ctrls i { width: 22px; height: 22px; }
  .call-ctrls svg { width: 11px; height: 11px; }
  .profile-stack b { font-size: 9.5px; padding: 3px 6px; }
  .sprint-h { font-size: 10px; }
  .cursor b { font-size: 10px; }
}

/* ================= HIRING ================= */
.hiring { padding-block: clamp(80px, 11vw, 160px); overflow: hidden; }
.hiring-pin {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--side);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 80px); align-items: center;
}
.hiring .h2 { font-size: clamp(28px, 3vw, 46px); }
.hiring .lead { margin: 14px 0 clamp(18px, 3.4svh, 32px); }
.hsteps { border-top: 1px solid var(--line-l); }
.hstep { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: clamp(7px, 1.25svh, 12px) 0; border-bottom: 1px solid var(--line-l); color: #a1a7b0; transition: color .4s; }
.hstep-n { font-family: var(--f-display); font-size: 13px; line-height: 1.75; }
.hstep h3 { font-family: var(--f-text); font-weight: 600; font-size: 16px; line-height: 1.35; }
.hstep p { font-size: 14px; line-height: 1.45; }
.hstep.is-on { color: var(--ink); }
.hstep.is-on .hstep-n { color: var(--orange); }
.hstep-last.is-on h3 { color: var(--orange); }
.hiring.is-pin { padding: 0; }
.hiring.is-pin .hiring-pin { height: 100vh; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 24px; }

.crowd { position: relative; width: 100%; max-width: min(560px, calc(100vh - var(--nav-h) - 64px)); aspect-ratio: 1; justify-self: center; }
.crowd-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 2%; }
.p { position: relative; color: var(--orange); will-change: transform; }
.p::before, .p::after { content: ""; position: absolute; background: currentColor; }
.p::before { width: 34%; height: 34%; left: 33%; top: 10%; border-radius: 50%; }
.p::after { width: 72%; height: 40%; left: 14%; bottom: 8%; border-radius: 50% 50% 14% 14% / 80% 80% 14% 14%; }
.chosen { position: absolute; left: 25%; top: 25%; width: 50%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; opacity: 0; box-shadow: 0 0 0 4px var(--orange), 0 40px 80px -30px rgba(236,98,25,.6); will-change: transform; }
.chosen video { width: 100%; height: 100%; object-fit: cover; object-position: 80% 28%; transform: scale(1.9); transform-origin: 80% 28%; }

@media (max-width: 959px), (max-height: 559px) {
  .hiring-pin { grid-template-columns: 1fr; }
  .crowd { max-width: 480px; }
}

/* v5: on wide screens the pinned process stays centred (a pinned element loses its auto margins),
   and the film never grows wider than its column, so it cannot cover the steps. */
.process-pin { max-width: none; margin: 0; padding-inline: max(var(--side), calc((100% - var(--max)) / 2 + var(--side))); }
.process.is-pin .pstage { width: min(100%, calc((100vh - var(--nav-h) - 56px) * 16 / 11)); height: auto; aspect-ratio: 16 / 11; }
