/* Native dialogs remain open and focus-trapped until their exit completes. */
.interaction-dialog{isolation:isolate}
.chapter-menu.interaction-dialog[open]{animation:none}
.interaction-dialog[data-dialog-phase="opening"],.interaction-dialog[data-dialog-phase="closing"]{will-change:clip-path,transform,opacity}
.interaction-dialog[data-dialog-phase="closing"]>*{pointer-events:none}
.interaction-dialog::backdrop{background:rgb(5 8 6 / .74);backdrop-filter:blur(12px);animation:interaction-backdrop-in .6s both}
.interaction-dialog[data-dialog-phase="closing"]::backdrop{animation:interaction-backdrop-out .48s both}
@keyframes interaction-backdrop-in{from{opacity:0;backdrop-filter:blur(0)}to{opacity:1;backdrop-filter:blur(12px)}}
@keyframes interaction-backdrop-out{from{opacity:1}to{opacity:0}}

/* Three red planes move behind the navigation while the whole menu is unmasked. */
.chapter-menu.interaction-dialog{background:#ed2b30;overflow-x:hidden}
.chapter-menu.interaction-dialog::before{content:'CNCS';position:fixed;right:-.035em;bottom:-.21em;z-index:-1;font-family:CNCSDisplay,Impact,sans-serif;font-size:45vw;line-height:1;letter-spacing:-.055em;color:rgb(104 11 18 / .14);pointer-events:none;transform:rotate(-8deg);transform-origin:right bottom}
.chapter-menu .menu-depth{position:absolute;inset:0;z-index:-1;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;pointer-events:none}
.menu-depth>span{display:block;background:#b91623;transform:translateY(-110%)}
.menu-depth>span:nth-child(2){background:#d01b28}
.menu-depth>span:nth-child(3){background:#a8101c}
.chapter-menu .dialog-top{position:relative;z-index:1}
.chapter-menu .chapter-link{position:relative;transition:color .25s,padding .45s cubic-bezier(.22,1,.36,1);transform-origin:left center}
.chapter-menu .chapter-link::after{content:'\2197';position:absolute;right:0;opacity:0;transform:translate(-14px,12px);font-size:.64em;font-weight:400;transition:opacity .25s,transform .45s cubic-bezier(.22,1,.36,1)}
.chapter-menu .chapter-link:hover,.chapter-menu .chapter-link:focus-visible{padding-left:20px;color:#341115}
.chapter-menu .chapter-link:hover::after,.chapter-menu .chapter-link:focus-visible::after{opacity:1;transform:translate(0,0)}
.chapter-menu nav a>.chapter-label{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.15;align-self:auto}
.chapter-menu .chapter-link>small{transition:transform .45s cubic-bezier(.22,1,.36,1),opacity .3s}
.chapter-menu .chapter-link:hover>small,.chapter-menu .chapter-link:focus-visible>small{transform:translateX(-38px);opacity:.8}
.chapter-menu .close-button span,.team-dialog .close-button span{display:inline-block;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.chapter-menu .close-button:hover span,.team-dialog .close-button:hover span{transform:rotate(90deg)}
.team-dialog.interaction-dialog{border:1px solid #ffffff1e;box-shadow:0 32px 100px #0008;background:linear-gradient(145deg,#242822,#151815 72%)}
.team-dialog.interaction-dialog::before{content:'';position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,#ed2b30 0%,#ed2b30 32%,transparent 32%);pointer-events:none}
.team-dialog.interaction-dialog .team-dialog-fact{position:relative}
.team-dialog.interaction-dialog .team-dialog-fact::before{content:'';position:absolute;left:0;top:-1px;height:1px;width:75px;background:#ed2b30}

@media(max-width:600px){
  .chapter-menu.interaction-dialog::before{font-size:66vw;bottom:.04em;right:-.05em}
  .chapter-menu .chapter-link:hover,.chapter-menu .chapter-link:focus-visible{padding-left:8px}
  .chapter-menu .chapter-link:hover>small,.chapter-menu .chapter-link:focus-visible>small{transform:translateX(-21px)}
}
@media(prefers-reduced-motion:reduce){
  .interaction-dialog,.interaction-dialog::backdrop,.chapter-menu .chapter-link,.chapter-menu .chapter-link::after,.chapter-menu .chapter-link>small,.close-button span{animation:none!important;transition:none!important;will-change:auto!important}
}
