#journey{height:755svh}html,body{background-color:#090d11}
#viewport{height:100vh;height:100dvh}
#viewport header{top:calc(env(safe-area-inset-top,0px) + clamp(12px,2.5vh,32px));left:max(var(--edge),env(safe-area-inset-left));right:max(var(--edge),env(safe-area-inset-right))}
#viewport .bottom{bottom:calc(env(safe-area-inset-bottom,0px) + clamp(12px,2.6vh,24px));left:max(var(--edge),env(safe-area-inset-left));right:max(var(--edge),env(safe-area-inset-right))}
#processVisual{overflow:hidden}#signature{position:absolute;z-index:3;left:50%;top:63%;width:min(33vw,330px,38dvh);aspect-ratio:350/244;transform:translate(-50%,-50%);pointer-events:none}
#signature canvas,#signature img{position:absolute;inset:0;width:100%;height:100%;display:block}
#signature img{opacity:0}#process[data-state=complete] #signature img{opacity:1}
#process[data-signature=bilingual] #signature{width:min(35vw,350px,41dvh);aspect-ratio:350/278}
#directory .directory-body{min-height:0}#directory .index-links{max-height:63dvh;overflow:auto}
.viewer-bar{min-height:47px;padding:5px 16px 5px 8px;background:#111419;border-color:#e5e8f015;color:#e5e7ee}
.viewer-bar strong{font-size:12px;letter-spacing:.05em}
.viewer-bar #return{display:inline-flex;align-items:center;gap:3px;min-height:38px;padding:3px 10px 3px 4px;border:0;border-radius:12px;background:transparent;font:500 12px/1.3 system-ui;color:#d3d7e2}
#return:hover{background:#ffffff0c}
#viewer[data-exhibit=game]{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;border:0;border-radius:0;background:#0e1e25}
#viewer[data-exhibit=game] .viewer-bar{display:none}#viewer[data-exhibit=game] #exhibit{height:100%;width:100%}
@media(max-width:719px){
 #signature{width:min(53vw,29dvh);top:60%}
 #process[data-signature=bilingual] #signature{width:min(57vw,32dvh)}
 #viewport header,.bottom{--edge:clamp(14px,4.1vw,24px)}
 #viewport header nav a,#viewport header nav button{padding-inline:clamp(9px,2.3vw,13px)}
 #viewer[open]{position:fixed;inset:0;margin:0;width:100%;height:100dvh;border:0;border-radius:0}
 .viewer-bar{padding-top:calc(env(safe-area-inset-top,0px) + 3px)}
}
@media(orientation:landscape) and (max-height:520px){
 #signature{width:min(31vw,37dvh);top:66%}
 #process[data-signature=bilingual] #signature{width:min(33vw,40dvh)}
 #viewport header{top:max(7px,env(safe-area-inset-top))}#viewport .bottom{bottom:max(7px,env(safe-area-inset-bottom))}
}
/* Let Safari follow the document swipe and compact its address bar.
   The sticky pin reserves the visible area; only the scenery overscans it. */
.edge-bleed{--status-bleed:max(66px,env(safe-area-inset-top,0px));--toolbar-bleed:max(env(safe-area-inset-bottom,0px),calc(100lvh - 100dvh + 68px))}
/* The same sky tint continues down the document behind the floating toolbar. */
.edge-bleed #journey{--journey-height:max(755svh,1650px);height:var(--journey-height);position:relative;overflow:clip;background:linear-gradient(100deg,#20172a,#090d11 76%)}
.edge-bleed #viewport{background:radial-gradient(ellipse at 93% 3%,#19303585,transparent 35%),radial-gradient(ellipse at 10% 100%,#20172a,transparent 45%),linear-gradient(#090d11,#090d11)}

.edge-bleed .scene-pin{position:sticky;top:0;height:100dvh;isolation:isolate}
/* A document-linked transform pins the art without Safari masking the
   scrolling content behind its translucent toolbar. */
@supports (animation-timeline:scroll(root block)){
 .edge-bleed .scene-pin{position:absolute;inset:0 0 auto;animation:travel-with-page 1s linear both;animation-timeline:scroll(root block)}
 @keyframes travel-with-page{from{transform:translateY(0)}to{transform:translateY(calc(var(--journey-height) - 100dvh))}}
}
.edge-bleed #viewport{position:absolute;inset:calc(-1 * var(--status-bleed)) 0 calc(-1 * var(--toolbar-bleed));height:auto}
@media(max-width:680px) and (orientation:portrait){
 .edge-bleed #viewport .intro{bottom:calc(19% + .81 * var(--toolbar-bleed))}
}
/* At the document's physical end the native toolbar samples the page color. */
.edge-bleed #viewport:has(.rail button:last-child[aria-current="step"])::after{
 content:"";position:absolute;z-index:2;inset:auto 0 0;height:calc(var(--toolbar-bleed) + 78px);pointer-events:none;
 background:linear-gradient(to top,#090d11 calc(var(--toolbar-bleed) + 3px),rgba(9,13,17,0))
}
.edge-bleed #viewport header{top:calc(var(--status-bleed) + clamp(12px,2.5vh,32px))}
.edge-bleed #viewport .bottom{bottom:calc(var(--toolbar-bleed) + env(safe-area-inset-bottom,0px) + 30px)}
.edge-bleed #viewport .site-legal{position:absolute;bottom:calc(var(--toolbar-bleed) + max(4px,env(safe-area-inset-bottom)))}
/* Safari can paint a solid color behind the clock. Meet that color exactly
   at the content edge and bring back the sky below it, behind the controls. */
@media(orientation:portrait){
 .edge-bleed #viewport::before{content:"";position:absolute;z-index:3;inset:0 0 auto;pointer-events:none;height:calc(var(--status-bleed) + 96px);background:linear-gradient(to bottom,#090d11 calc(var(--status-bleed) + 3px),rgba(9,13,17,.91) calc(var(--status-bleed) + 20px),rgba(9,13,17,.50) calc(var(--status-bleed) + 49px),rgba(9,13,17,0) 100%)}
}
@media(orientation:landscape){.edge-bleed{--status-bleed:0px;--toolbar-bleed:max(42px,env(safe-area-inset-bottom))}.edge-bleed #viewport header{top:max(7px,env(safe-area-inset-top))}}
#logoTouch{appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;box-shadow:none}
#logoTouch:active{background:transparent}
#logoTouch:focus:not(:focus-visible){outline:0}
