/* hub */
html, body { height: 100%; overflow: hidden; }

#world { position: fixed; inset: 0; touch-action: none; width: 100%; height: 100%; display: block; }

.masthead { position: fixed; left: 0; right: 0; bottom: 54px; text-align: center; pointer-events: none; z-index: 10; padding: 0 24px; }
.name { font-family: var(--serif); font-weight: 800; letter-spacing: 0.08em; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1;
    color: var(--ink); }
.name span:last-child { color: rgba(232,232,236,0.45); }
.name span { display: inline-block; opacity: 0; transform: translateY(18px); animation: rise .6s cubic-bezier(.22,1,.36,1) forwards; }
.name span:nth-child(1){animation-delay:.15s}.name span:nth-child(2){animation-delay:.22s}.name span:nth-child(3){animation-delay:.29s}.name span:nth-child(4){animation-delay:.36s}.name span:nth-child(5){animation-delay:.43s}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.role { margin-top: 12px; font-size: 0.58rem; letter-spacing: 4px; color: var(--dim); opacity: 0; animation: rise .6s .6s forwards; }
.role b { color: var(--ink); font-weight: 400; }
.role .sep { font-style: normal; }
@media (max-width: 620px) { .role .sep { display: none; } .role .scr { display: block; } .role span.scr { margin-top: 6px; } }
.masthead { pointer-events: none; }
.whisper { margin-top: 18px; font-size: .62rem; line-height: 2.2; color: var(--dim); opacity: 0; animation: rise .6s .75s forwards; }

.hud { position: fixed; left: 24px; bottom: 74px; z-index: 10; font-size: 0.56rem; letter-spacing: 2px; color: var(--dim); line-height: 2; pointer-events: none; }
.hud b { color: var(--ink); font-weight: 400; }
.hud .bar { display: inline-block; width: 90px; height: 4px; background: rgba(232,232,236,0.1); vertical-align: middle; margin-left: 8px; }
.hud .bar i { display: block; height: 100%; width: 0%; background: var(--ink); }
.eng { position: fixed; top: 30px; right: 34px; z-index: 11; background: none; border: 0; padding: 4px 2px; cursor: pointer;
    font-family: var(--mono); font-size: .5rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(232,232,236,.3);
    text-decoration: line-through; transition: color .2s; }
.eng:hover, .eng:focus-visible { color: var(--ink); outline: none; }
.eng.on { color: rgba(232,232,236,.7); text-decoration: none; }
@media (max-width: 620px) { .eng { top: 18px; right: 18px; } }
.corner { position: fixed; width: 18px; height: 18px; border: 1px solid rgba(232,232,236,0.22); z-index: 10; pointer-events: none; }
.c1 { top: 22px; left: 18px; border-right: 0; border-bottom: 0; }
.c2 { top: 22px; right: 18px; border-left: 0; border-bottom: 0; }
.c3 { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.c4 { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

.skip { position: fixed; left: -9999px; top: 0; z-index: 999; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--void);
    padding: 12px 18px; font: 400 .6rem/1 var(--mono); letter-spacing: 2px; text-decoration: none; }

noscript .nojs { position: fixed; inset: 0; z-index: 300; background: var(--void); display: grid; place-items: center; text-align: center; }
noscript a { color: var(--ink); display: block; margin: 8px 0; }
@media (max-width: 760px) { .hud { display: none; } }
@media (max-width: 560px) { .masthead { bottom: 34px; } .name { font-size: clamp(2rem, 11vw, 3rem); } }

@media (prefers-reduced-motion: no-preference) {
    html:not(.qr) .masthead, html:not(.qr) .hud, html:not(.qr) .eng { visibility: hidden; animation: qshow 0s 1.6s forwards; }
    .name span, .role, .whisper { opacity: 1; transform: none; animation: none; }
}
@keyframes qshow { to { visibility: visible; } }
.qc { position: relative; -webkit-text-fill-color: transparent; }
.qc::after { content: attr(data-g); content: attr(data-g) / ""; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    -webkit-text-fill-color: currentColor; font-family: var(--mono); font-weight: 400; pointer-events: none; }
.qc.hot::after { color: var(--ink); text-shadow: 0 0 8px rgba(232,232,236,.5); }
#qbar { position: fixed; top: 16px; left: 50%; z-index: 12; pointer-events: none; transform: translateX(-50%); transform-origin: 50% 75%;
    font: 400 .5rem/1 var(--mono); letter-spacing: 2px; white-space: pre; color: var(--dim); transition: transform .12s ease-in, opacity .12s ease-in; }
#qbar .ok { color: #7ea87e; }
#qbar .bad { color: #d98b5f; }
#qbar.fold { transform: translateX(-50%) scaleY(0); opacity: 0; }
.qline { position: fixed; top: 22px; height: 1px; width: calc(50% - 18px); z-index: 12; pointer-events: none; background: rgba(232,232,236,.55); transform: scaleX(0); }
#qlL { left: 18px; transform-origin: 100% 50%; } #qlR { right: 18px; transform-origin: 0 50%; }
#qwave { position: fixed; left: 0; right: 0; top: 0; height: 90px; z-index: 12; pointer-events: none; will-change: transform, opacity;
    transform: translateY(-90px); background: linear-gradient(to bottom, rgba(232,232,236,0), rgba(232,232,236,.035)); }
#qwave::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, rgba(232,232,236,0), rgba(232,232,236,.3) 25%, rgba(232,232,236,.3) 75%, rgba(232,232,236,0)); }
.corner { transition: border-color .6s ease; }
.corner.qf { border-color: rgba(232,232,236,.85); transition-duration: .08s; }

@media (max-width: 620px) { #qbar { top: 9px; font-size: .44rem; letter-spacing: .5px; } .qline { top: 13px; } }
@media (max-width: 620px) {
    .masthead { bottom: 26px; }
    .whisper { font-size: .58rem; line-height: 1.9; }
    .hud { left: 14px; bottom: 58px; transform: scale(.85); transform-origin: left bottom; }
    .corner { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.a11y-nav { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.a11y-nav:focus-within { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: min(90vw, 420px); height: auto; overflow: visible; z-index: 300;
    background: var(--void); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; }
.a11y-nav h2 { font-family: var(--serif); font-size: .8rem; letter-spacing: 4px; margin-bottom: 16px; }
.a11y-nav li { list-style: none; margin: 0 0 4px; }
.a11y-nav a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none;
    font-size: .7rem; border-bottom: 1px solid var(--line); }
.a11y-nav a:hover, .a11y-nav a:focus-visible { color: var(--void); background: var(--ink); padding-left: 8px; }
.a11y-nav p { margin-top: 14px; font-size: .56rem; line-height: 1.9; color: var(--dim); }

/* page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtout .3s ease both; }
::view-transition-new(root) { animation: vtin .32s ease both; }
@keyframes vtout { to { opacity: 0; } }
@keyframes vtin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*) { animation: none !important; } }
