/* The dark interior of the landing gift bridges the two documents. */
#gift-index-transition-veil{display:none;position:fixed;inset:0;z-index:100;pointer-events:none;background:radial-gradient(circle at 50% 54%,#050507,#08090d 65%,#0b0b0e)}
/* The index dialog opens only once the modules have loaded. Until then the
   same dark interior hides the editorial page, from the very first paint.
   The open dialog sits in the top layer, above this cover. The late fade
   only matters if the scripts never run. */
html.gift-index-arriving body::after{content:"";position:fixed;inset:0;z-index:2147483647;pointer-events:none;background:radial-gradient(circle at 50% 54%,#050507,#08090d 65%,#0b0b0e);animation:gift-index-veil-out .6s ease 8s both}
html.gift-index-arriving #gift-index-transition-veil{display:block;animation:gift-index-veil-out 1.15s cubic-bezier(.16,1,.3,1) both}
html.gift-index-arriving #index-dialog .experience{animation:gift-index-world-in 1s cubic-bezier(.16,1,.3,1) both}
html.gift-index-arriving #index-dialog .index-navigation{animation:gift-index-tabs-in .65s cubic-bezier(.16,1,.3,1) .35s both}
html.gift-index-departing #gift-index-transition-veil{display:block;animation:gift-index-veil-in .55s ease-in both}
/* Leaving: the screen folds into the gift, a closing circle at the box's opening. */
html.gift-index-departing #index-dialog{background:#050507}
html.gift-index-departing #index-dialog .experience{transform-origin:50% 54%;animation:gift-index-world-fold .7s cubic-bezier(.55,0,.7,.25) both}
html.gift-index-departing #index-dialog .index-navigation{animation:gift-index-tabs-out .3s ease-in both}
@keyframes gift-index-veil-out{from{opacity:1}to{opacity:0}}
@keyframes gift-index-veil-in{from{opacity:0}to{opacity:1}}
@keyframes gift-index-world-in{from{opacity:.45;transform:scale(.965)}to{opacity:1;transform:scale(1)}}
@keyframes gift-index-world-out{from{opacity:1;transform:scale(1)}to{opacity:.3;transform:scale(.965)}}
@keyframes gift-index-world-fold{from{opacity:1;transform:scale(1);clip-path:circle(150vmax at 50% 54%)}to{opacity:.35;transform:scale(.5);clip-path:circle(0 at 50% 54%)}}
@keyframes gift-index-tabs-in{from{opacity:0;transform:translateY(-22px)}to{opacity:1;transform:translateY(0)}}
@keyframes gift-index-tabs-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-22px)}}
@media(prefers-reduced-motion:reduce){html.gift-index-arriving #gift-index-transition-veil,html.gift-index-arriving #index-dialog .experience,html.gift-index-arriving #index-dialog .index-navigation,html.gift-index-departing #gift-index-transition-veil,html.gift-index-departing #index-dialog .experience,html.gift-index-departing #index-dialog .index-navigation{animation:none}html.gift-index-arriving #gift-index-transition-veil{display:none}html.gift-index-departing #gift-index-transition-veil{opacity:1}}
