:root {
  --crewflow-deep: #0b2921;
  --crewflow-green: #103a2d;
  --crewflow-soft: #dcebdc;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  min-width: 0;
  margin: 0;
  color: var(--jc-ink);
  background: var(--jc-mineral);
  font-family: var(--jc-font);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  height: 4px;
  background: var(--jc-signal);
}

a { color: inherit; }

.handoff-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.handoff-card {
  position: relative;
  display: grid;
  grid-template-columns: 260px 92px minmax(0, 1fr);
  width: min(100%, 940px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #d4cec3;
  border-radius: var(--jc-radius-lg);
  background: var(--jc-mineral-raised);
  box-shadow: var(--jc-shadow-2);
}

.origin-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 44px 34px 36px;
  overflow: hidden;
  color: #f5f6f2;
  background: var(--crewflow-green);
}

.origin-panel::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border: 20px solid rgba(245, 246, 242, 0.08);
  border-radius: 26px;
}

.origin-brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.origin-mark {
  width: 66px;
  height: 66px;
  padding: 7px;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(2, 15, 10, 0.24);
}

.origin-brand div { display: grid; }
.origin-brand p, .origin-note { margin: 0; }

.origin-brand p {
  color: #bcd4c4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.origin-brand strong {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.origin-brand span {
  margin-top: 2px;
  color: #cbd9d0;
  font-size: 12px;
  font-weight: 650;
}

.origin-note {
  position: relative;
  z-index: 1;
  max-width: 170px;
  color: #cbd9d0;
  font-size: 12px;
}

.handoff-route {
  position: relative;
  align-self: center;
  width: 100%;
  height: 48px;
}

.route-track,
.route-progress {
  position: absolute;
  top: 22px;
  left: 0;
  height: 4px;
}

.route-track {
  right: 0;
  background: var(--jc-steel-200);
}

.route-progress {
  width: 100%;
  background: var(--jc-signal);
}

.route-point {
  position: absolute;
  top: 17px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 3px solid var(--jc-mineral-raised);
  border-radius: 2px;
  background: var(--jc-steel-400);
  box-shadow: 0 0 0 1px var(--jc-steel-200);
}

.route-start { left: -1px; background: var(--crewflow-green); }
.route-middle { left: calc(50% - 7px); }
.route-finish { right: -1px; background: var(--jc-signal); }

.route-arrow {
  position: absolute;
  top: 18px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--jc-signal);
  border-right: 3px solid var(--jc-signal);
  transform: translateX(12px) rotate(45deg);
}

.destination-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 50px 54px;
}

.jobchief-logo {
  width: 196px;
  height: auto;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--jc-signal-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--jc-ink);
  font-size: clamp(44px, 6vw, 62px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 440px;
  margin: 20px 0 28px;
  color: var(--jc-steel-600);
  font-size: 17px;
}

.destination-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 15px;
  border: 1px solid #d4cec3;
  border-radius: var(--jc-radius-md);
  background: var(--jc-mineral-subtle);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.destination-link:hover {
  border-color: var(--jc-signal);
  background: var(--jc-mineral-raised);
}

.destination-link > span:first-child {
  display: grid;
  min-width: 0;
}

.destination-link small {
  color: var(--jc-steel-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.destination-link strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--jc-ink);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  color: var(--jc-signal-strong);
  font-size: 21px;
  font-weight: 800;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 12px;
  padding: 13px 20px;
  border: 1px solid #c66713;
  border-radius: var(--jc-radius-sm);
  color: var(--jc-ink);
  background: var(--jc-signal);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--jc-shadow-1);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  color: #fff;
  background: var(--jc-signal-strong);
  transform: translateY(-1px);
}

.primary-action span { font-size: 20px; line-height: 1; }

.redirect-copy {
  margin-top: 22px;
  text-align: center;
}

.manual-note,
.fallback { margin: 0; }

.manual-note {
  color: var(--jc-ink);
  font-size: 13px;
  font-weight: 800;
}

.fallback {
  margin-top: 4px;
  color: var(--jc-steel-600);
  font-size: 11px;
}

.no-script {
  position: fixed;
  right: 20px;
  bottom: 14px;
  left: 20px;
  margin: 0;
  color: var(--jc-steel-600);
  font-size: 12px;
  text-align: center;
}

.no-script a { color: var(--jc-signal-strong); font-weight: 800; }

@media (max-width: 768px) {
  .handoff-shell { padding: 22px; }

  .handoff-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .origin-panel {
    display: block;
    padding: 22px 26px;
  }

  .origin-panel::after,
  .origin-note { display: none; }

  .origin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .origin-mark {
    width: 48px;
    height: 48px;
    border-radius: 9px;
  }

  .origin-brand strong { margin-top: 1px; font-size: 21px; }
  .origin-brand span { display: none; }

  .handoff-route {
    width: calc(100% - 52px);
    margin: 0 auto;
  }

  .destination-panel { padding: 24px 36px 36px; }

  .jobchief-logo {
    width: 176px;
    margin-bottom: 30px;
  }
}

@media (max-width: 420px) {
  .handoff-shell {
    align-items: safe center;
    padding: 14px 12px 28px;
  }

  .handoff-card { border-radius: var(--jc-radius-md); }
  .origin-panel { padding: 18px 20px; }

  .origin-mark {
    width: 44px;
    height: 44px;
  }

  .handoff-route {
    width: calc(100% - 40px);
    height: 42px;
  }

  .route-track,
  .route-progress { top: 19px; }
  .route-point { top: 14px; }
  .route-arrow { top: 15px; }
  .destination-panel { padding: 18px 20px 28px; }

  .jobchief-logo {
    width: 158px;
    margin-bottom: 25px;
  }

  h1 { font-size: clamp(40px, 14vw, 52px); }

  .intro {
    margin: 16px 0 22px;
    font-size: 15px;
  }

  .destination-link { min-height: 64px; }
  .destination-link strong { font-size: 14px; }
  .redirect-copy { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .destination-link,
  .primary-action { transition: none; }
  .primary-action:hover { transform: none; }
}
