/* A covered navigation: both documents paint the same navy at the handoff. */
html[data-threshold="arriving"] { background: #030a16; }
html[data-threshold="arriving"] body { visibility: hidden; }
#threshold { position: fixed; inset: 0; z-index: 1000; pointer-events: all; background: #030a16; opacity: 0; overflow: hidden; }
#threshold::before { content: ''; position: absolute; inset: -65% -45%; background: radial-gradient(ellipse at 50% 50%, transparent 29%, #8ce2ee 29.4%, #236a85 30%, transparent 33%, #a577b4 33.3%, transparent 34%); transform: rotate(-28deg) translate(-22%, 24%) scale(.7); }
#threshold.depart { animation: threshold-cover .95s ease-in both; }
#threshold.depart::before { animation: threshold-pass .95s cubic-bezier(.3,0,.65,1) both; }
#threshold.arrive { opacity: 1; animation: threshold-open 1.1s ease-out both; }
#threshold.arrive::before { animation: threshold-away 1.1s ease-out both; }
@keyframes threshold-cover { 0% { opacity: 0; } 35% { opacity: .45; } 70%,100% { opacity: 1; } }
@keyframes threshold-pass { to { transform: rotate(-28deg) translate(12%, -12%) scale(2.8); opacity: 0; } }
@keyframes threshold-open { 0%,18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes threshold-away { from { transform: rotate(-28deg) scale(2); opacity: .55; } to { transform: rotate(-28deg) scale(.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #threshold, #threshold::before { animation-duration: .12s !important; } #threshold::before { display: none; } }
