/* 06 Handoffs: three short scenarios beside a CLA-212 record that builds itself. */
.ho { padding: clamp(96px, 12vw, 160px) 0 0; overflow-x: clip; }
.ho-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ho-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.ho-h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 13ch; }
.ho-lede { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--body); max-width: 34ch; }
.ho-code { font-family: var(--mono); font-size: 0.88em; color: var(--body-strong); }
.ho-code.ref { font-size: 0.88em; color: var(--body-strong); }
:is(.ho-scn, .ho-entry, .ho-head):is(:hover, :focus-within) .ref { background: var(--lime-soft); box-shadow: -4px 0 0 var(--lime-soft), 4px 0 0 var(--lime-soft); color: var(--lime-ink); }

/* Scenarios: one hairline list, a dot that lights while its part of the record is written */
.ho-scns { list-style: none; margin: 40px 0 0; padding: 0; }
.ho-scn { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.ho-scn:last-child { border-bottom: 1px solid var(--line); }
.ho-scn::before { content: ""; position: absolute; inset: 0 0 0 -14px; pointer-events: none; opacity: 0;
  background: linear-gradient(to right, color-mix(in oklab, var(--lime) 7%, transparent), transparent 70%);
  transition: opacity var(--dur-slow) var(--ease); }
.ho-scn.is-on::before { opacity: 1; }
.ho-scn > * { position: relative; }
.ho-scn-dot { position: relative; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--line-strong); }
.ho-scn-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft);
  opacity: 0; transform: scale(0.4); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.ho-scn.is-on .ho-scn-dot::after { opacity: 1; transform: none; }
.ho-scn-k { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.ho-scn-v { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--body); }

.ho-pair { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.ho-pc { display: grid; place-items: center; width: 24px; height: 24px; flex: none; font-size: 11px; font-weight: 600; color: #fff; }
.ho-pc svg { width: 14px; height: 14px; fill: var(--ink); }
.ho-pc-tool { background-color: var(--raised); }
.ho-pc-p { position: relative; background-color: var(--av); }
.ho-pair-line { position: relative; width: 22px; height: 1px; background: var(--line-strong); overflow: visible; }
.ho-pair-run { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); opacity: 0; }
.ho-run .ho-scn.is-on .ho-pair-run { animation: ho-travel 1.3s var(--ease-inout) infinite; }
@keyframes ho-travel { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--ho-run, 17px)); } }

.ho-pc svg.ho-logo-claude, .ho-logo.ho-logo-claude { fill: #d97757; }

/* People outside the workspace get a dashed ring */
.ho-ext::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed var(--muted); }

/* Record card */
.ho-stage { position: relative; }
.ho-stage::before { content: ""; position: absolute; inset: -48px -32px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px); background-size: 22px 22px; opacity: 0.55;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent); }

.ho-record { position: relative; border: 1px solid transparent; border-radius: var(--radius-lg);
  background: linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(to bottom, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0) 45%) border-box var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.045), var(--shadow-card); }

.ho-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.ho-ref { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ho-name { font-size: 15px; font-weight: 600; color: var(--title); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@property --ho-wash { syntax: "<color>"; inherits: true; initial-value: #8f98a3; }
.ho-pill { --ho-wash: var(--muted); --wash: var(--ho-wash); margin-left: auto; flex: none; padding: 0 9px 0 8px;
  transition: --ho-wash var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease), color var(--dur-base) var(--ease); }
.ho-pill::before { transition: background-color var(--dur-slow) var(--ease); }
.ho-pill[data-state="progress"] { --ho-wash: var(--lime); }
.ho-pill[data-state="review"] { --ho-wash: var(--info); }
/* Solid success sits a step deeper so white 12px text keeps >= 4.5:1 */
.ho-pill[data-state="done"] { --ho-wash: color-mix(in oklab, var(--success) 80%, #000); }
.ho-pill.is-pop { animation: ho-pop 420ms var(--ease); }
@keyframes ho-pop { 0% { transform: scale(0.92); opacity: 0.55; } 60% { transform: scale(1.025); opacity: 1; } 100% { transform: none; } }

/* Feed + rail */
.ho-feedwrap { position: relative; padding: 24px 20px 4px; }
.ho-rail { position: absolute; left: 36px; top: 40px; width: 1px; height: 0; background: var(--line); pointer-events: none; }
.ho-rail-fill { position: absolute; inset: 0; background: var(--line-strong); transform-origin: 50% 0; transition: transform 700ms var(--ease-inout); }
/* While the record is being written, the rail warms to lime-line at the head */
.ho-rail-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--lime-line)); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.ho-armed:not(.is-done) .ho-rail-fill::after { opacity: 1; }
.ho-rail-head { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft);
  transform: translate(-50%, -50%); opacity: 0; transition: transform 700ms var(--ease-inout), opacity var(--dur-slow) var(--ease); }
.ho-armed .ho-rail-head { opacity: 1; }
.ho-armed.is-done .ho-rail-head { opacity: 0; }

.ho-feed { list-style: none; margin: 0; padding: 0; }
.ho-entry { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding-bottom: 22px; }
.ho-entry::before { content: ""; position: absolute; inset: -8px -10px 12px -8px; border-radius: 12px; pointer-events: none; opacity: 0;
  background: linear-gradient(to right, color-mix(in oklab, var(--lime) 8%, transparent), transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--lime) 12%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.03);
  transition: opacity var(--dur-base) var(--ease); }
.ho-entry:is(:hover, :focus-within)::before { opacity: 1; }
.ho-body { position: relative; }
.ho-av { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  background-color: var(--av); font-size: 13px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.10), 0 1px 2px rgb(0 0 0 / 0.35), 0 0 0 4px var(--card); }
.ho-av.agent { border-radius: 9px; }
.ho-av svg { width: 17px; height: 17px; fill: #fff; }
.ho-av.ho-ext::after { inset: -4px; }

.ho-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; line-height: 1.4; }
.ho-who { font-size: 14px; font-weight: 600; color: var(--title); }
.ho-for { font-weight: 500; color: var(--muted); }
.ho-via { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ho-via .ho-code { color: var(--muted); font-size: 12.5px; }
.ho-logo { width: 13px; height: 13px; fill: var(--ink); flex: none; align-self: center; }
.ho-time { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ho-what { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--body); }

.ho-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ho-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--body-strong); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04); }
.ho-chip.ho-code { font-size: 11.5px; }
.ho-chip.ho-ok { background: var(--success-soft); border-color: var(--success-line); color: var(--success-ink); }
.ho-claim-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.ho-record[data-state="progress"] .ho-claim-dot { background: var(--lime); }
.ho-record[data-state="progress"] .ho-claim-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime);
  animation: ho-ping 1.4s var(--ease) infinite; animation-play-state: paused; }
.ho-run .ho-record[data-state="progress"] .ho-claim-dot::after { animation-play-state: running; }
@keyframes ho-ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.8); opacity: 0; } }

/* Footer */
.ho-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.ho-stack { display: inline-flex; padding-left: 6px; }
.ho-mini { display: grid; place-items: center; width: 22px; height: 22px; margin-left: -6px; background-color: var(--av);
  font-size: 10px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.10), 0 0 0 2px var(--card); }
.ho-mini.agent { border-radius: 6px; }
.ho-mini svg { width: 12px; height: 12px; fill: #fff; }
.ho-cap { flex: 1 1 220px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ho-replay { display: none; min-height: 44px; padding: 0 14px; font-size: 14px; color: var(--body-strong); }
.ho-armed .ho-replay { display: inline-flex; }
.ho-replay svg { transition: transform var(--dur-slow) var(--ease); }
.ho-replay { transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.ho-replay:hover { background-color: rgb(255 255 255 / 0.04); }
.ho-replay:hover svg { transform: rotate(-60deg); }

/* Armed (JS + motion allowed): everything waits for its moment */
.ho-armed .ho-av, .ho-armed .ho-mini { transition: opacity 360ms var(--ease), transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.ho-armed .ho-body { transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.ho-armed .ho-chip { transition: opacity 300ms var(--ease), transform 360ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.ho-armed .ho-entry:not(.is-in) .ho-av { opacity: 0; transform: translateY(-14px) scale(0.6); }
.ho-armed .ho-entry:not(.is-in) .ho-body { opacity: 0; transform: translateX(10px); }
.ho-armed .ho-chip[data-at]:not(.is-in) { opacity: 0; transform: translateY(4px) scale(0.86); }
.ho-armed .ho-mini:not(.is-in) { opacity: 0; transform: scale(0.5); }

@media (max-width: 960px) {
  .ho-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .ho-h2 { max-width: 16ch; }
  .ho-stage::before { inset: -32px -16px; }
}
@media (max-width: 480px) {
  .ho-head { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .ho-name { flex: 1 1 auto; }
  .ho-feedwrap { padding: 20px 16px 2px; }
  .ho-rail { left: 32px; }
  .ho-foot { padding: 14px 16px; }
  .ho-scn { column-gap: 12px; }
  .ho-pair { gap: 4px; }
  .ho-pair-line { width: 14px; --ho-run: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ho-run .ho-scn.is-on .ho-pair-run, .ho-run .ho-record[data-state="progress"] .ho-claim-dot::after { animation: none; }
}
