/* Inspector handoff rail */
.handoff-stage {
  display: grid;
  min-height: 74vh;
  grid-template-columns: minmax(280px, 0.58fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  overflow: hidden;
  padding: 32px max(16px, calc((100vw - 1180px) / 2));
}

.handoff-panel {
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.15);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 76px rgba(17, 19, 21, 0.14);
}

.handoff-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 19, 21, 0.1);
}

.handoff-tab {
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  padding: 18px 10px;
  text-transform: uppercase;
}

.handoff-marker {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: rgba(104, 216, 214, 0.3);
  transform-origin: left center;
  will-change: transform;
}

.handoff-body {
  display: grid;
  min-height: 380px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1px;
  background: rgba(17, 19, 21, 0.1);
}

.handoff-metric,
.handoff-card {
  background: var(--paper);
  padding: clamp(18px, 4vw, 30px);
}

.handoff-metric {
  display: grid;
  align-content: space-between;
}

.handoff-number {
  display: block;
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.8;
}

.handoff-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.handoff-card {
  display: grid;
  align-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--tone), var(--paper) 76%);
}

.handoff-card h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.9;
  text-transform: uppercase;
}

.handoff-card p {
  max-width: 32ch;
}

@media (max-width: 840px) {
  .handoff-stage,
  .handoff-body {
    grid-template-columns: 1fr;
  }

  .handoff-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handoff-marker {
    display: none;
  }
}
