/* One native-scroll handoff. White carries meaning; blue carries the connection. */
.research-showcase .chapter-bridge.has-handoff{--handoff-line-offset:1;--handoff-marker-position:0%;--handoff-marker-opacity:0;--handoff-target-opacity:.82;--handoff-target-y:6px;--handoff-arrival-opacity:0;position:relative;min-height:0;margin:28px 0 0;padding:0;border:0;isolation:isolate}
.research-showcase .has-handoff .handoff-stage{position:relative;top:auto;padding:22px 0 0;background:none;color:var(--ink);border:0;border-top:1px solid #2c333d;border-radius:0;overflow:visible}
.handoff-context{display:grid;grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr);align-items:center;gap:20px;margin-bottom:18px}
.handoff-chapter{display:flex;flex-direction:column;gap:4px;min-width:0}.handoff-label{font-size:11px;line-height:1.6;color:var(--muted)}
.handoff-chapter strong{font-size:19px;font-weight:700;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.handoff-context-arrow{width:42px;height:22px;justify-self:center;fill:none;stroke:#697383;stroke-width:1.3}
.research-showcase .has-handoff .bridge-flow{display:grid;grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr);gap:20px;max-width:none;align-items:stretch;margin:0}
.research-showcase .has-handoff .bridge-output,.research-showcase .has-handoff .bridge-input{position:relative;min-height:90px;padding:15px 17px;border:1px solid #373d47;border-radius:4px;background:#13161b;opacity:1;transform:none;animation:none;box-shadow:none}
.research-showcase .has-handoff .bridge-input{opacity:var(--handoff-target-opacity);transform:translateY(var(--handoff-target-y))}
.research-showcase .has-handoff .bridge-input:after{content:'';position:absolute;inset:-1px;border:1px solid var(--accent,#8ab8ff);border-radius:4px;opacity:var(--handoff-arrival-opacity);pointer-events:none;box-shadow:none}
.research-showcase .has-handoff .bridge-flow span{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}
.research-showcase .has-handoff .bridge-flow strong{color:var(--ink);font-size:15px;line-height:1.7;font-weight:650;overflow-wrap:anywhere}
.research-showcase .has-handoff .bridge-output strong{color:var(--accent,#8ab8ff)}
.research-showcase .has-handoff .bridge-track{position:relative;align-self:center;height:32px}
.research-showcase .has-handoff .bridge-track svg{width:100%;height:32px;fill:none;stroke-width:1.6;overflow:visible}
.research-showcase .has-handoff .handoff-line-base{stroke:#424b58;opacity:1}
.research-showcase .has-handoff .handoff-line-motion{stroke:var(--accent,#8ab8ff);stroke-dasharray:1;stroke-dashoffset:var(--handoff-line-offset);filter:none}
.research-showcase .has-handoff .bridge-packet{position:absolute;left:var(--handoff-marker-position);top:12px;transform:translateX(-50%);width:7px;height:7px;border-radius:50%;background:#d8e8ff;box-shadow:0 0 9px #8ab8ff88;opacity:var(--handoff-marker-opacity);animation:none}
.research-showcase .has-handoff .chapter-transition{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:19px 0 0;padding:14px 0 0;border-top:0;font-size:13px;line-height:1.7;color:var(--ink);font-weight:650;text-decoration:none;text-shadow:none}
.research-showcase .has-handoff .chapter-transition>span{flex:1;color:var(--muted);font-size:12px;font-weight:400}
.research-showcase .has-handoff .chapter-transition svg{flex:none;width:22px;height:22px;fill:none;stroke:var(--accent,#8ab8ff);stroke-width:1.5}
.research-showcase .has-handoff .chapter-transition:hover{color:var(--accent,#8ab8ff);text-shadow:none}
.research-showcase .has-handoff.is-delivered .handoff-next strong{color:var(--accent,#8ab8ff)}
@media(max-width:820px){.research-showcase .has-handoff .handoff-stage{padding:18px 16px}.handoff-context,.research-showcase .has-handoff .bridge-flow{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);gap:10px}.handoff-chapter strong{font-size:15px}.handoff-context-arrow{width:28px}.research-showcase .has-handoff .bridge-flow strong{font-size:13px}.research-showcase .has-handoff .bridge-output,.research-showcase .has-handoff .bridge-input{padding:12px 10px}.research-showcase .has-handoff .chapter-transition>span{display:none}}
@media(max-width:360px){.research-showcase .has-handoff .handoff-stage{padding:16px 12px}.handoff-context,.research-showcase .has-handoff .bridge-flow{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:7px}.handoff-label,.research-showcase .has-handoff .bridge-flow span{font-size:10px}.handoff-chapter strong{font-size:14px}.research-showcase .has-handoff .bridge-flow strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.research-showcase .has-handoff .bridge-input{opacity:1;transform:none}.research-showcase .has-handoff .bridge-input:after{opacity:1}.research-showcase .has-handoff .handoff-line-motion{stroke-dashoffset:0}.research-showcase .has-handoff .bridge-packet{display:none}}
@media print{.research-showcase .chapter-bridge.has-handoff{break-inside:avoid}.research-showcase .has-handoff .bridge-input{opacity:1;transform:none}.research-showcase .has-handoff .bridge-packet{display:none}}

/* The transfer remains visible for a short beat, even if scrolling pauses. */
.research-showcase .has-handoff .bridge-flow,.handoff-context{grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr)}
.research-showcase .has-handoff .bridge-track svg{stroke-width:2}
.research-showcase .has-handoff .bridge-packet{width:9px;height:9px;top:11px;box-shadow:0 0 10px #8ab8ff99}
.research-showcase .has-handoff.is-playing .handoff-line-motion{animation:handoff-draw 1.15s cubic-bezier(.2,.7,.2,1) both}
.research-showcase .has-handoff.is-playing .bridge-packet{animation:handoff-transfer 1.15s cubic-bezier(.2,.7,.2,1) both}
.research-showcase .has-handoff.is-playing .bridge-input:after{animation:handoff-receive 1.15s ease-out both}
@keyframes handoff-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes handoff-transfer{0%{left:0%;opacity:0}10%{opacity:1}88%{opacity:1}100%{left:100%;opacity:0}}
@keyframes handoff-receive{0%,30%{opacity:.1;box-shadow:none}65%{opacity:1;box-shadow:0 0 12px #8ab8ff24}100%{opacity:1;box-shadow:none}}
@media(max-width:820px){.research-showcase .has-handoff .bridge-flow,.handoff-context{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.research-showcase .has-handoff.is-playing .handoff-line-motion,.research-showcase .has-handoff.is-playing .bridge-packet,.research-showcase .has-handoff.is-playing .bridge-input:after{animation:none}}

/* Each entire chapter pulls forward from a recessed plane as native scroll advances. */
.research-showcase{overflow-x:hidden;overflow-x:clip}
.research-showcase .topic-section.is-arrival-pending{opacity:1;transform:none}
.research-showcase .topic-section.is-arriving{opacity:1;transform-origin:50% 0;transform:perspective(1800px) translate3d(0,var(--topic-arrival-y,0px),var(--topic-arrival-depth,0px)) rotateX(var(--topic-arrival-tilt,0deg)) scale(var(--topic-arrival-scale,1));animation:none;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.research-showcase .has-handoff.is-pushing-out .handoff-stage{transform:translateY(var(--handoff-push-y,0px))}
.research-showcase.is-launch-open .has-handoff.is-playing .handoff-line-motion,.research-showcase.is-launch-open .has-handoff.is-playing .bridge-packet,.research-showcase.is-launch-open .has-handoff.is-playing .bridge-input:after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.research-showcase .topic-section.is-arrival-pending,.research-showcase .topic-section.is-arriving,.research-showcase .has-handoff.is-pushing-out .handoff-stage{opacity:1;transform:none;animation:none;will-change:auto}}
@media(prefers-reduced-motion:reduce){.research-showcase .topic-section.is-arriving:after{display:none}}
@media print{.research-showcase .topic-section.is-arrival-pending,.research-showcase .topic-section.is-arriving,.research-showcase .has-handoff.is-pushing-out .handoff-stage{opacity:1;transform:none;animation:none;will-change:auto}}
@media print{.research-showcase .topic-section.is-arriving:after{display:none}}
