/* Opportunity journey — calibration, matching and results explanation.
   Loaded after styles.css so these route-owned compositions can remain isolated. */

.screen-calibration,
.screen-matching,
.screen-results-intro,
.screen-calibration .screen-content,
.screen-matching .screen-content,
.screen-results-intro .screen-content {
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
}

.screen-calibration .screen-content,
.screen-matching .screen-content,
.screen-results-intro .screen-content {
  padding: 0;
}

.calibration-journey,
.matching-journey,
.results-intro-journey {
  --op-ink: var(--ink);
  --op-soft-ink: var(--ink-soft);
  --op-paper: var(--paper-deep);
  --op-shell: var(--sea-pale);
  --op-line: var(--line);
  --op-sea: var(--sea-deep);
  --op-sea-soft: var(--sea-soft);
  --op-coral: var(--coral-text);
  --op-blue: var(--inferred);
  --op-sand: var(--sand);
  --op-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: min(100%, 26.875rem);
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  color: var(--op-ink);
  background: var(--op-shell);
  font-family: var(--font-body);
}

.opportunity-journey-header {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(4.75rem, 1fr) auto minmax(4.75rem, 1fr);
  align-items: center;
  min-height: calc(4.5rem + env(safe-area-inset-top));
  padding: max(0.75rem, env(safe-area-inset-top)) clamp(1rem, 5.5vw, 1.5rem) 0.6rem;
  animation: opportunity-header-in 440ms var(--op-ease) both;
}

.opportunity-wordmark {
  justify-self: start;
  color: var(--op-coral);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.opportunity-round-action {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid color-mix(in oklch, var(--op-line) 82%, var(--op-ink));
  border-radius: 50%;
  background: color-mix(in oklch, var(--op-paper) 92%, transparent);
  cursor: pointer;
  transition: transform 160ms var(--op-ease), background-color 180ms var(--op-ease);
}

.opportunity-round-action svg { width: 1.05rem; height: 1.05rem; }

.opportunity-journey-title {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  white-space: nowrap;
}

.opportunity-journey-title small {
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.opportunity-journey-title strong {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.13em;
}

.opportunity-mentor-button {
  display: grid;
  grid-template-columns: 2.55rem auto;
  align-items: center;
  justify-self: end;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.opportunity-mentor-button span {
  width: 2.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  opacity: 1;
  transform: none;
}

.mentor-art--opportunity-avatar {
  width: 2.55rem;
  height: 2.55rem;
  overflow: hidden;
  border: 0.125rem solid var(--op-paper);
  border-radius: 50%;
  background: var(--op-sand);
  box-shadow: 0 0.2rem 0.65rem oklch(29% 0.025 96 / 0.1);
}

.mentor-art--opportunity-avatar .mentor-photo { transform: scale(1.12); }

.opportunity-primary-action,
.opportunity-text-action {
  min-height: 3.25rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.opportunity-primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0 1.15rem;
  border: 0;
  color: var(--op-paper);
  background: var(--op-sea);
  box-shadow: 0 0.45rem 1.2rem oklch(30% 0.055 171 / 0.14);
  transition: transform 150ms var(--op-ease), background-color 180ms var(--op-ease);
}

.opportunity-primary-action svg { width: 1rem; height: 1rem; }

.opportunity-text-action {
  min-width: 3.25rem;
  padding: 0 0.5rem;
  border: 0;
  color: var(--op-sea);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 0.05rem;
  text-underline-offset: 0.25rem;
}

/* Calibration — a field ticket handed from mentor to student. */
.calibration-journey { overflow: visible; }

.calibration-journey::before {
  position: absolute;
  top: -3rem;
  right: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid color-mix(in oklch, var(--op-coral) 22%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.calibration-route {
  position: absolute;
  top: 7.75rem;
  right: -2.5rem;
  width: 11rem;
  height: 18rem;
  border: 1px solid color-mix(in oklch, var(--op-sea) 18%, transparent);
  border-radius: 52% 0 0 54%;
  pointer-events: none;
  transform: rotate(-9deg);
}

.calibration-route i {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--op-sea);
  border-radius: 50%;
  background: var(--op-shell);
}

.calibration-route i:nth-child(1) { top: -0.2rem; left: 43%; }
.calibration-route i:nth-child(2) { top: 48%; left: -0.2rem; }
.calibration-route i:nth-child(3) { right: 12%; bottom: -0.15rem; background: var(--op-coral); border-color: var(--op-coral); }

.calibration-journey-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.4rem, 6vw, 2rem);
  padding: clamp(0.85rem, 4vw, 1.4rem) clamp(1rem, 5.5vw, 1.5rem) max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
}

.calibration-intro {
  display: grid;
  gap: 0.65rem;
  max-width: 20rem;
  animation: opportunity-copy-in 520ms 40ms var(--op-ease) both;
}

.calibration-intro > span,
.calibration-response > span,
.results-intro-spread > span {
  color: var(--op-coral);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.045em;
}

.calibration-intro h1 {
  max-width: 14em;
  font-family: var(--font-body);
  font-size: clamp(1.72rem, 8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.055em;
}

.calibration-intro p {
  max-width: 29rem;
  color: var(--op-soft-ink);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.opportunity-ticket {
  position: relative;
  display: grid;
  padding: 1.15rem clamp(1rem, 5vw, 1.4rem) 1.3rem;
  overflow: hidden;
  border: 1px solid var(--op-line);
  border-radius: 1.55rem 1.55rem 0.8rem 0.8rem;
  background: var(--op-paper);
  box-shadow: 0 0.8rem 2.5rem oklch(34% 0.025 87 / 0.09);
  transform-origin: 85% -5%;
}

.calibration-journey--round-1 .opportunity-ticket { animation: opportunity-ticket-one 680ms 100ms var(--op-ease) both; }
.calibration-journey--round-2 .opportunity-ticket { animation: opportunity-ticket-two 680ms var(--op-ease) both; }
.calibration-journey--round-3 .opportunity-ticket { animation: opportunity-ticket-three 680ms var(--op-ease) both; }

.opportunity-ticket__notch {
  position: absolute;
  top: 8.25rem;
  right: -0.7rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--op-line);
  border-radius: 50%;
  background: var(--op-shell);
}

.opportunity-ticket__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--op-line);
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
}

.opportunity-ticket__heading span { color: var(--op-coral); font-weight: 700; }
.opportunity-ticket__heading small { font-size: inherit; }

.opportunity-ticket__identity {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem 0 1rem;
}

.opportunity-ticket__identity p { color: var(--op-sea); font-size: 0.75rem; font-weight: 700; }

.opportunity-ticket__identity h2 {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 7vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.opportunity-ticket__identity span { margin-top: 0.35rem; color: var(--op-soft-ink); font-size: var(--text-xs); }

.opportunity-ticket__summary {
  padding: 0.95rem 0 1.15rem;
  border-top: 1px dashed var(--op-line);
  color: var(--op-soft-ink);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.opportunity-facts { display: grid; border-top: 1px solid var(--op-line); }

.opportunity-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto);
  align-items: end;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--op-line);
}

.opportunity-fact > div { display: grid; gap: 0.2rem; min-width: 0; }
.opportunity-fact > div span { color: var(--op-soft-ink); font-size: var(--text-xs); }
.opportunity-fact > div strong { overflow-wrap: anywhere; font-size: 0.85rem; }

.opportunity-fact small {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
  line-height: 1.4;
  text-align: right;
}

.opportunity-fact small b {
  padding: 0.18rem 0.4rem;
  border-radius: 99px;
  color: var(--op-sea);
  background: var(--op-sea-soft);
  font-size: var(--text-xs);
}

.opportunity-fact--missing small b { color: oklch(48% 0.11 45); background: oklch(92% 0.055 66); }

.opportunity-ticket__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  padding: 0.9rem 0;
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
}

.opportunity-ticket__legend span { display: flex; align-items: center; gap: 0.3rem; }
.opportunity-ticket__legend i { width: 0.42rem; height: 0.42rem; border-radius: 50%; }
.opportunity-ticket__legend .is-verified { background: var(--op-sea); }
.opportunity-ticket__legend .is-inferred { border: 1px solid var(--op-blue); background: transparent; }
.opportunity-ticket__legend .is-missing { background: var(--op-coral); }

.opportunity-field-notes { border-top: 1px dashed var(--op-line); }

.opportunity-field-notes details { border-bottom: 1px dashed var(--op-line); }

.opportunity-field-notes summary {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  min-height: 3.5rem;
  list-style: none;
  cursor: pointer;
}

.opportunity-field-notes summary::-webkit-details-marker { display: none; }
.opportunity-field-notes summary span { color: var(--op-coral); font-size: var(--text-xs); font-weight: 700; }
.opportunity-field-notes summary strong { font-size: 0.78rem; }
.opportunity-field-notes summary i { justify-self: end; font-style: normal; transition: transform 220ms var(--op-ease); }
.opportunity-field-notes details[open] summary i { transform: rotate(45deg); }

.opportunity-field-notes details > div {
  display: grid;
  gap: 0.35rem;
  padding: 0 2.75rem 1rem 1.65rem;
  animation: opportunity-note-in 240ms var(--op-ease) both;
}

.opportunity-field-notes details > div small { color: var(--op-blue); font-size: var(--text-xs); font-weight: 700; }
.opportunity-field-notes details > div p { color: var(--op-soft-ink); font-size: var(--text-xs); line-height: 1.6; }

.calibration-response {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  border-radius: 1.6rem 1.6rem 0.75rem 0.75rem;
  color: var(--op-paper);
  background: var(--op-sea);
  box-shadow: 0 0.9rem 2rem oklch(28% 0.05 171 / 0.16);
  animation: opportunity-response-in 580ms 180ms var(--op-ease) both;
}

.calibration-response > span { color: oklch(86% 0.09 69); }

.calibration-response h2 {
  max-width: 13em;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.calibration-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }

.calibration-choice-row button {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  align-items: center;
  min-height: 4.6rem;
  padding: 0.75rem;
  border: 1px solid oklch(84% 0.03 171 / 0.34);
  border-radius: 1rem;
  color: var(--op-paper);
  background: oklch(96% 0.018 82 / 0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms var(--op-ease), background-color 180ms var(--op-ease), color 180ms var(--op-ease);
}

.calibration-choice-row button > i {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
}

.calibration-choice-row button > span { display: grid; gap: 0.2rem; }
.calibration-choice-row button strong { font-size: 0.78rem; }
.calibration-choice-row button small { color: inherit; font-size: var(--text-xs); line-height: 1.35; opacity: 0.72; }
.calibration-choice-row button.is-selected { color: var(--op-sea); background: var(--op-paper); }

.calibration-response > .opportunity-primary-action,
.calibration-reasons .opportunity-primary-action { color: var(--op-sea); background: var(--op-paper); box-shadow: none; }

.calibration-reasons { display: grid; gap: 0.85rem; padding-top: 0.35rem; }
.calibration-reasons > p { color: oklch(91% 0.023 171); font-size: var(--text-xs); line-height: 1.55; }
.calibration-reasons > div:not(.calibration-finale) { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.calibration-reasons label { position: relative; cursor: pointer; }
.calibration-reasons input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.calibration-reasons label span {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border: 1px solid oklch(89% 0.025 171 / 0.36);
  border-radius: 99px;
  color: var(--op-paper);
  font-size: var(--text-xs);
  transition: transform 150ms var(--op-ease), background-color 180ms var(--op-ease), color 180ms var(--op-ease);
}

.calibration-reasons input:checked + span { color: var(--op-sea); background: var(--op-paper); }
.calibration-reasons input:focus-visible + span { outline: 0.1875rem solid var(--op-coral); outline-offset: 0.1875rem; }

.calibration-finale { display: grid; gap: 0.65rem; }
.calibration-finale > p { color: oklch(92% 0.02 171); font-size: var(--text-xs); line-height: 1.55; }
.calibration-finale .opportunity-text-action { color: var(--op-paper); }

.human-waypoint {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 0 0;
  border-top: 1px solid var(--op-line);
}

.human-waypoint__portrait {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--op-paper);
  background: var(--op-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.human-waypoint > div:nth-child(2) { display: grid; gap: 0.1rem; min-width: 0; }
.human-waypoint > div:nth-child(2) span { color: var(--op-coral); font-size: var(--text-xs); font-weight: 700; }
.human-waypoint > div:nth-child(2) strong { font-size: 0.82rem; }
.human-waypoint > div:nth-child(2) p { overflow: hidden; color: var(--op-soft-ink); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }

.human-waypoint > button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--op-line);
  color: var(--op-sea);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.human-waypoint > button svg { width: 1rem; }

/* Matching — one quiet hero animation, then legible progress. */
.matching-journey { background: var(--op-paper); }
.matching-journey .opportunity-journey-header { position: absolute; top: 0; right: 0; left: 0; color: var(--op-paper); }
.matching-journey .opportunity-wordmark { color: oklch(91% 0.1 67); }
.matching-journey .opportunity-journey-title small { color: oklch(96% 0.015 85 / 0.88); }

.matching-journey-main { min-height: 100svh; }

.matching-landscape {
  position: relative;
  height: clamp(19rem, 45svh, 25rem);
  min-height: 19rem;
  overflow: hidden;
  background: var(--op-sea);
}

.matching-landscape > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  filter: saturate(0.72) contrast(0.93) brightness(0.79);
  animation: matching-landscape-drift 7.2s linear both;
}

.matching-landscape__wash {
  position: absolute;
  inset: 0;
  background: oklch(22% 0.055 179 / 0.34);
  pointer-events: none;
}

.matching-location-stamp {
  position: absolute;
  top: calc(5.25rem + env(safe-area-inset-top));
  left: clamp(1rem, 5.5vw, 1.5rem);
  padding: 0.3rem 0.55rem;
  border: 1px solid oklch(95% 0.02 82 / 0.52);
  border-radius: 99px;
  color: var(--op-paper);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: matching-label-in 500ms 500ms var(--op-ease) forwards;
}

.matching-route-line {
  position: absolute;
  right: -1rem;
  bottom: 4.6rem;
  left: -1rem;
  height: 5rem;
  border-top: 1px dashed oklch(94% 0.025 82 / 0.62);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.matching-route-line i {
  position: absolute;
  top: -0.25rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--op-paper);
  border-radius: 50%;
  background: var(--op-sea);
  opacity: 0;
  animation: matching-waypoint 400ms var(--op-ease) forwards;
}

.matching-route-line i:nth-child(1) { left: 12%; animation-delay: 500ms; }
.matching-route-line i:nth-child(2) { left: 38%; animation-delay: 1.8s; }
.matching-route-line i:nth-child(3) { left: 65%; animation-delay: 3.2s; }
.matching-route-line i:nth-child(4) { left: 87%; background: var(--op-coral); border-color: var(--op-coral); animation-delay: 4.7s; }

.matching-mentor-companion {
  position: absolute;
  right: -0.6rem;
  bottom: -0.3rem;
  width: 10.5rem;
  height: 14rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0.8rem, 1rem, 0);
  animation: matching-mentor-in 720ms 260ms var(--op-ease) forwards;
}

.mentor-art--opportunity-wayfinder { width: 100%; height: 100%; overflow: visible; background: transparent; }
.mentor-art--opportunity-wayfinder .mentor-photo { object-position: center bottom; }

.matching-narrative {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.75rem;
  margin-top: -1.4rem;
  padding: 1.5rem clamp(1rem, 5.5vw, 1.5rem) max(2rem, calc(env(safe-area-inset-bottom) + 1.25rem));
  border-radius: 1.75rem 1.75rem 0 0;
  background: var(--op-paper);
  animation: matching-copy-in 580ms 180ms var(--op-ease) both;
}

.matching-kicker { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.matching-kicker > span { color: var(--op-coral); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; }

.matching-kicker button {
  min-height: 2.75rem;
  padding: 0 0.2rem;
  border: 0;
  color: var(--op-sea);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.matching-narrative h1 {
  max-width: 12em;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 8.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.matching-narrative > p:not(.matching-caveat) { color: var(--op-soft-ink); font-size: 0.78rem; line-height: 1.6; }

.matching-caveat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--op-line);
  border-bottom: 1px solid var(--op-line);
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.matching-caveat strong { color: var(--op-blue); white-space: nowrap; }

.matching-progress { display: grid; gap: 0.65rem; }
.matching-progress > div { height: 0.125rem; overflow: hidden; background: var(--op-line); }

.matching-progress > div span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--op-coral);
  transform: scaleX(0);
  transform-origin: left;
  animation: matching-progress-fill 6.6s 180ms linear forwards;
}

.matching-progress > p { display: flex; align-items: center; gap: 0.55rem; }
.matching-progress > p > i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--op-coral); animation: matching-status-pulse 1.6s var(--op-ease) infinite; }
.matching-progress > p > span { display: grid; gap: 0.05rem; }
.matching-progress strong { font-size: var(--text-xs); }
.matching-progress small { color: var(--op-soft-ink); font-size: var(--text-xs); }

.matching-beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--op-line);
  border-radius: 0.75rem;
  background: var(--op-line);
  list-style: none;
}

.matching-beats li {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.45rem 0.2rem;
  color: var(--op-soft-ink);
  background: var(--op-paper);
  font-size: var(--text-xs);
  opacity: 0.48;
  animation: matching-beat-on 420ms var(--op-ease) forwards;
}

.matching-beats li span { font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.matching-beats li:nth-child(1) { animation-delay: 500ms; }
.matching-beats li:nth-child(2) { animation-delay: 2s; }
.matching-beats li:nth-child(3) { animation-delay: 3.5s; }
.matching-beats li:nth-child(4) { animation-delay: 5s; }

/* Results intro — two editorial spreads with the mentor standing in the margin. */
.results-intro-journey { background: var(--op-shell); }

.results-intro-journey::after {
  position: absolute;
  top: 5.8rem;
  right: -6.5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid color-mix(in oklch, var(--op-sea) 18%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.results-intro-main {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 0 clamp(1rem, 5.5vw, 1.5rem) max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
}

.results-intro-mentor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.75rem;
  align-items: end;
  height: clamp(8.2rem, 23svh, 11rem);
}

.results-intro-mentor .mentor-art {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  justify-self: end;
  width: 8.75rem;
  height: 100%;
  overflow: visible;
  background: transparent;
  transform-origin: center bottom;
  transition: transform 480ms var(--op-ease);
}

.results-intro-journey--step-two .results-intro-mentor .mentor-art { transform: translate3d(-0.4rem, 0.25rem, 0) scale(0.94); }

.results-intro-mentor span {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 12rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--op-line);
  border-bottom: 1px solid var(--op-line);
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.results-intro-spread {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem clamp(1rem, 5vw, 1.35rem) 1.45rem;
  border: 1px solid var(--op-line);
  border-radius: 1.55rem 1.55rem 0.75rem 0.75rem;
  background: var(--op-paper);
  box-shadow: 0 0.9rem 2.5rem oklch(34% 0.025 87 / 0.08);
  transform-origin: top right;
}

.results-intro-journey--step-one .results-intro-spread { animation: results-page-one 620ms 80ms var(--op-ease) both; }
.results-intro-journey--step-two .results-intro-spread { animation: results-page-two 620ms var(--op-ease) both; }

.results-intro-spread h1 {
  max-width: 16em;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -0.05em;
}

.results-intro-spread > p:not(.results-intro-note) { color: var(--op-soft-ink); font-size: 0.75rem; line-height: 1.65; }

.evidence-ledger { display: grid; border-top: 1px solid var(--op-line); }

.evidence-ledger article {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.25rem 0.6rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--op-line);
}

.evidence-ledger article > span {
  grid-row: 1 / 3;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  padding: 0.28rem 0.45rem;
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.evidence-ledger article > span svg { width: 0.8rem; height: 0.8rem; }
.evidence-ledger article strong { font-size: var(--text-xs); }
.evidence-ledger article p { color: var(--op-soft-ink); font-size: var(--text-xs); line-height: 1.5; }
.evidence-ledger__verified > span { color: var(--op-sea); background: var(--op-sea-soft); }
.evidence-ledger__inferred > span { color: var(--op-blue); background: oklch(92% 0.035 238); }
.evidence-ledger__missing > span { color: oklch(48% 0.11 45); background: oklch(92% 0.055 66); }

.answer-map { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.answer-map article {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 12.5rem;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--op-line);
  border-radius: 1rem;
}

.answer-map article > span { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; }
.answer-map article > b { color: color-mix(in oklch, currentColor 16%, transparent); font-size: 4rem; line-height: 0.9; }
.answer-map article h2 { margin-top: 0.5rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.answer-map article p { margin-top: 0.3rem; color: var(--op-soft-ink); font-size: var(--text-xs); line-height: 1.5; }
.answer-map article small { margin-top: auto; padding-top: 0.7rem; font-size: var(--text-xs); line-height: 1.45; }
.answer-map__life { color: var(--op-coral); background: oklch(96% 0.034 69); }
.answer-map__reach { color: var(--op-sea); background: var(--op-sea-soft); }

.results-intro-note {
  padding: 0.8rem 0;
  border-top: 1px dashed var(--op-line);
  border-bottom: 1px dashed var(--op-line);
  color: var(--op-soft-ink);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.results-intro-note strong { color: var(--op-ink); }
.results-intro-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.55rem; }

.opportunity-round-action:active,
.opportunity-primary-action:active,
.calibration-choice-row button:active,
.calibration-reasons label:active span { transform: scale(0.975); }

@media (max-width: 21.25rem) {
  .opportunity-journey-header { grid-template-columns: 3.5rem 1fr 3.5rem; padding-inline: 0.8rem; }
  .opportunity-mentor-button { grid-template-columns: 2.4rem; }
  .opportunity-mentor-button span { display: none; }
  .mentor-art--opportunity-avatar { width: 2.4rem; height: 2.4rem; }
  .calibration-journey-main,
  .matching-narrative,
  .results-intro-main { padding-inline: 0.8rem; }
  .calibration-choice-row { grid-template-columns: 1fr; }
  .opportunity-fact { grid-template-columns: 1fr 6.75rem; }
  .answer-map { grid-template-columns: 1fr; }
  .answer-map article { min-height: 9.75rem; }
  .evidence-ledger article { grid-template-columns: 6.1rem minmax(0, 1fr); }
}

@media (max-height: 38rem) {
  .matching-landscape { height: 17rem; min-height: 17rem; }
  .matching-narrative { gap: 0.55rem; }
  .results-intro-mentor { height: 7rem; }
  .results-intro-spread { gap: 0.7rem; padding-top: 1rem; }
}

@media (min-width: 40rem) {
  .screen-calibration,
  .screen-matching,
  .screen-results-intro,
  .screen-calibration .screen-content,
  .screen-matching .screen-content,
  .screen-results-intro .screen-content,
  .calibration-journey,
  .matching-journey,
  .results-intro-journey { min-height: var(--desktop-stage-height); }

  .screen-calibration .screen-content,
  .screen-matching .screen-content,
  .screen-results-intro .screen-content { max-height: var(--desktop-stage-height); overflow-y: auto; scrollbar-width: none; }
  .screen-calibration .screen-content::-webkit-scrollbar,
  .screen-matching .screen-content::-webkit-scrollbar,
  .screen-results-intro .screen-content::-webkit-scrollbar { display: none; }
  .matching-journey-main { min-height: var(--desktop-stage-height); }
}

@keyframes opportunity-header-in {
  from { opacity: 0; transform: translate3d(0, -0.65rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes opportunity-copy-in {
  from { opacity: 0; transform: translate3d(0, 0.9rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes opportunity-ticket-one {
  from { opacity: 0; transform: translate3d(1.4rem, 1.15rem, 0) rotate(1.2deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes opportunity-ticket-two {
  from { opacity: 0; transform: translate3d(2rem, -0.6rem, 0) rotate(1.6deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes opportunity-ticket-three {
  from { opacity: 0; transform: translate3d(-1.5rem, 0.8rem, 0) rotate(-1.4deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes opportunity-note-in {
  from { opacity: 0; transform: translate3d(0, -0.35rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes opportunity-response-in {
  from { opacity: 0; transform: translate3d(0, 1rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes matching-landscape-drift {
  from { transform: scale(1.07) translate3d(-0.5rem, 0, 0); }
  to { transform: scale(1.015) translate3d(0, 0, 0); }
}

@keyframes matching-label-in {
  from { opacity: 0; transform: translate3d(0, -0.4rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes matching-waypoint {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes matching-mentor-in {
  from { opacity: 0; transform: translate3d(0.8rem, 1rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes matching-copy-in {
  from { opacity: 0; transform: translate3d(0, 1.4rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes matching-progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes matching-status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes matching-beat-on {
  from { opacity: 0.48; transform: translate3d(0, 0.2rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes results-page-one {
  from { opacity: 0; transform: translate3d(0.8rem, 1rem, 0) rotate(0.7deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes results-page-two {
  from { opacity: 0; transform: translate3d(1.5rem, 0.3rem, 0) rotate(1.1deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .calibration-journey *,
  .calibration-journey *::before,
  .calibration-journey *::after,
  .matching-journey *,
  .matching-journey *::before,
  .matching-journey *::after,
  .results-intro-journey *,
  .results-intro-journey *::before,
  .results-intro-journey *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
