/* ============================================================
   HirePunk Landing v4 — hero search animation
   "From hiring chaos to interview-ready shortlist"
   role brief → noise storm → reject/qualify stamps → dock
   ============================================================ */

/* ---------- layers ---------- */
.hunt-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.hunt-layer.front { z-index: 6; }

/* ---------- the role brief (input) ---------- */
.hunt-brief {
  position: absolute; z-index: 4; pointer-events: none;
  left: max(2.5%, calc(50% - 705px)); top: 238px; width: 250px;
  opacity: 0; transform: translateY(16px) scale(.94);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.9,.25,1.15);
}
.hero.hunting .hunt-brief.on { opacity: 1; transform: none; }
.hero.hunting .hunt-brief.done { opacity: 0; transform: translateY(-30px) scale(.97); transition: opacity .45s ease, transform .5s ease; }
.hunt-brief .fc-row { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.hunt-brief .bk { color: var(--ash); font-weight: 500; font-size: 8.5px; letter-spacing: 0.1em; margin-right: 4px; flex: none; }
.hunt-status { justify-content: flex-start; gap: 8px; align-items: center; }
.hunt-status .sq { width: 7px; height: 7px; background: var(--acid); flex: none; animation: blink 1.5s ease-in-out infinite; }
.hunt-status .st { color: var(--ink); font-weight: 700; }

/* sonar pulse when the search fires */
.hunt-pulse { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; }
.hunt-pulse::before, .hunt-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--acid-2); opacity: 0;
}
.hunt-brief.pulse .hunt-pulse::before { animation: hunt-ring 1.5s cubic-bezier(.2,.6,.35,1) 2; }
.hunt-brief.pulse .hunt-pulse::after { animation: hunt-ring 1.5s cubic-bezier(.2,.6,.35,1) 0.4s 2; }
@keyframes hunt-ring { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(30); } }

/* ---------- noise cards (candidate chaos) ---------- */
.nz { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.nz-c {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(15,19,32,0.15);
  font-family: var(--mono); color: var(--ink-2);
}
.nz .src {
  position: absolute; right: 8px; top: 7px; font-size: 6.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash);
}
.nz-file {
  margin-top: 8px; font-size: 7.5px; color: var(--ash-2); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* cv — little paper */
.nz-cv { width: 96px; padding: 10px; }
.nz-cv .hd { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.nz-cv .hd .avx { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); color: var(--acid); display: grid; place-items: center; font-size: 6.5px; font-weight: 700; flex: none; }
.nz-cv .hd .bar { height: 7px; border-radius: 4px; background: #C9D2DF; flex: 1; }
.nz-cv .ln { display: block; height: 4px; border-radius: 3px; background: var(--mist); margin-top: 5px; }
.nz-cv .ln.w90 { width: 90%; } .nz-cv .ln.w75 { width: 75%; } .nz-cv .ln.w85 { width: 85%; } .nz-cv .ln.w60 { width: 60%; }

/* profile — avatar + name */
.nz-prof { width: 172px; padding: 11px 12px; display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: center; }
.nz-prof .av { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--frost); display: grid; place-items: center; font-size: 8.5px; font-weight: 700; }
.nz-prof .nm { font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.nz-prof .rl { font-size: 8.5px; color: var(--ash-2); white-space: nowrap; margin-top: 2px; }

/* dashboard — bars */
.nz-dash { width: 128px; padding: 10px; }
.nz-dash .bars { display: flex; gap: 5px; align-items: flex-end; height: 40px; }
.nz-dash .bars i { flex: 1; background: var(--mist); border-radius: 3px 3px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.nz-dash .bars i.hot { background: var(--acid); border-color: var(--acid-2); }

/* campaign screenshot — striped placeholder */
.nz-shot { width: 122px; padding: 8px; }
.nz-shot .ph {
  height: 54px; border-radius: 6px; border: 1px dashed var(--line);
  background: repeating-linear-gradient(45deg, #EEF2F8 0 8px, #E4EAF3 8px 16px);
}

/* skill signal — pill */
.nz-skill { padding: 9px 15px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }

/* ---------- verdict stamps ---------- */
.nz .stamp {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 2;
  border-radius: 9px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 16px; line-height: 1;
  transform: scale(0) rotate(-24deg);
  transition: transform 0.24s cubic-bezier(.2,1.5,.4,1);
}
.nz .why {
  position: absolute; left: 50%; top: calc(50% + 23px); z-index: 2;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--mono); font-size: 7.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
  opacity: 0; transition: opacity 0.25s ease 0.12s;
}
.nz.rejected .stamp { background: var(--paper); color: var(--danger); border: 2px solid var(--danger); transform: scale(1) rotate(-10deg); box-shadow: 0 10px 24px rgba(255,115,81,0.3); }
.nz.rejected .why { background: var(--danger); color: #FFF; opacity: 1; }
.nz.rejected .nz-c { border-color: rgba(255,115,81,0.6); }
.nz.kept .stamp { background: var(--acid); color: var(--ink); border: 2px solid var(--ink); transform: scale(1) rotate(7deg); box-shadow: 0 10px 26px rgba(206,252,0,0.45); }
.nz.kept .why { background: var(--ink); color: var(--acid); opacity: 1; }
.nz.kept .nz-c { border-color: var(--ink); box-shadow: 0 18px 48px rgba(140,170,0,0.3); }

/* ---------- floats: hidden while the hunt runs ---------- */
.hero.hunting .hero-float { opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
/* shortlist card returns early as the docking target */
.hero.hunting[data-hunt="dock"] .fl-right,
.hero.hunting[data-hunt="settle"] .fl-right { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.hero.hunting .fl-right .fc-row { opacity: 0.13; filter: grayscale(1); transition: opacity 0.35s ease, filter 0.35s ease; }
.hero.hunting .fl-right .fc-row.landed { opacity: 1; filter: none; }
.hero.hunting .fl-right .fc-foot { opacity: 0.13; transition: opacity 0.4s ease; }
.hero.hunting[data-hunt="settle"] .fl-right .fc-foot { opacity: 1; }
.fl-right .fc-row.landed .fit { animation: hunt-fitpop 0.55s cubic-bezier(.2,1.35,.4,1); }
@keyframes hunt-fitpop { 0% { transform: scale(0.3); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- replay ---------- */
.hunt-replay {
  margin-top: 26px; padding: 8px 12px; background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ash-2); display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s, color 0.15s ease;
}
.hero.played .hunt-replay { opacity: 1; transform: none; pointer-events: auto; }
.hunt-replay:hover { color: var(--ink); }
.hunt-replay .ic { font-size: 13px; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.hunt-replay:hover .ic { transform: rotate(-180deg); }

/* ---------- guards ---------- */
@media (max-width: 1180px) {
  .hunt-layer, .hunt-brief, .hunt-replay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hunt-layer, .hunt-brief, .hunt-replay { display: none !important; }
  .hero.hunting .hero-float { opacity: 1; visibility: visible; }
  .hero.hunting .fl-right .fc-row, .hero.hunting .fl-right .fc-foot { opacity: 1; filter: none; }
}
