/* The corner frame and chapter rail stay with the viewport as content scrolls. */
.world-corners{position:fixed;z-index:19}
.index-rail{position:fixed;z-index:20;left:clamp(34px,3.5vw,64px);top:clamp(66px,10svh,112px);bottom:clamp(100px,12svh,140px);width:clamp(130px,11vw,190px);display:flex;flex-direction:column;pointer-events:none}
.index-cta{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;width:min(168px,100%);min-height:46px;margin:0;padding:11px;border:0;background:none;color:var(--ink);font-size:13px;line-height:1.25;letter-spacing:-.025em;pointer-events:auto;transition:color .2s}
.index-cta::before,.index-cta::after{content:'';position:absolute;z-index:-1;pointer-events:none}
.index-cta::before{inset:0;background:var(--orange);clip-path:polygon(0 0,100% 0,100% calc(100% - 9.6px),calc(100% - 9.6px) 100%,0 100%)}
.index-cta::after{inset:1px;background:#000;clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);transition:background .2s}
.index-cta>span:last-child{flex:none;color:var(--orange);font-size:18px}
.index-cta:hover,.index-cta:focus-visible{color:var(--orange)}
.index-cta:hover::after,.index-cta:focus-visible::after{background:#170700}
.index-cta:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.index-rail__title{writing-mode:vertical-rl;transform:rotate(180deg);align-self:flex-start;position:relative;left:-6px;color:var(--orange);font-size:11px;letter-spacing:.13em;margin-bottom:25px}
.index-rail__title::before{content:'';position:absolute;left:1px;bottom:calc(100% + 12px);width:7px;height:7px;background:var(--orange)}
.index-track{--index-count:5;list-style:none;padding:0;margin:0;position:relative;display:grid;grid-template-rows:repeat(var(--index-count),minmax(0,1fr));flex:1;min-height:0;isolation:isolate}
.index-track::before{content:'';position:absolute;left:0;top:0;bottom:calc(50% / var(--index-count));width:1px;background:var(--orange);transform-origin:top}
.index-slot{position:relative;min-height:0;pointer-events:auto}
.index-slot::after{content:'';position:absolute;left:-4px;bottom:0;width:9px;height:1px;background:var(--orange);opacity:.85}
.index-slot:last-child::after{display:none}
.index-slot__number{position:absolute;right:calc(100% + 13px);top:50%;transform:translateY(-50%);color:var(--orange);font-family:Arke Mono,monospace;font-size:10px;line-height:1;letter-spacing:.025em}
.index-slot__node{position:absolute;left:-4px;top:50%;width:9px;height:9px;transform:translateY(-50%);background:var(--orange);transition:box-shadow .2s}
.index-slot__outline{position:absolute;left:0;top:50%;height:44px;width:100%;overflow:visible;transform:translateY(-50%) scaleX(.8);transform-origin:left;opacity:0;transition:opacity .18s,transform .25s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.index-slot__outline path{fill:#0009;stroke:var(--orange);stroke-width:1;vector-effect:non-scaling-stroke}
@media(hover:hover){.index-slot:hover .index-slot__outline{opacity:1;transform:translateY(-50%) scaleX(1)}.index-slot:hover .index-slot__node{box-shadow:0 0 10px #fa4c1450}}
.index-toggle{display:none;position:fixed;z-index:30;bottom:calc(27px + env(safe-area-inset-bottom,0px));left:26px;min-width:108px;min-height:46px;padding:12px 16px;background:#000;border:1px solid var(--orange);color:var(--ink);align-items:center;justify-content:space-between;gap:16px;font-size:11px;letter-spacing:.045em}
.index-toggle__square{position:absolute;width:8px;height:8px;left:-4px;top:50%;transform:translateY(-50%);background:var(--orange)}
.index-sheet{position:fixed;inset:0;z-index:100;max-width:none;max-height:none;width:100%;height:100dvh;margin:0;padding:0;border:0;background:#000;color:var(--ink);overscroll-behavior:contain}
.index-sheet::backdrop{background:#000}
.index-sheet__inner{min-height:100%;height:100%;padding:calc(26px + env(safe-area-inset-top,0px)) 26px calc(27px + env(safe-area-inset-bottom,0px));display:grid;grid-template-rows:auto minmax(0,1fr) 46px;gap:clamp(16px,3svh,32px)}
.index-cta--mobile{width:168px;min-height:48px}
.index-sheet__header{display:flex;align-items:flex-start;justify-content:space-between;gap:30px}
.index-sheet__brand .index-home{width:168px;height:54.4px}
.index-sheet__brand .index-home::before{inset:0}
.index-sheet__brand .index-home>span{height:52%}
.index-home{display:block;width:108px;height:32px;background:var(--orange);mask:url('/assets/arke-wordmark-vector.svg') center/contain no-repeat;-webkit-mask:url('/assets/arke-wordmark-vector.svg') center/contain no-repeat}
.index-close{background:none;padding:10px 0 10px 16px;min-height:46px;font-size:11px;color:var(--ink);display:flex;align-items:center;gap:12px}
.index-close span{font-size:21px;font-family:Arial,sans-serif}
.index-track--mobile{margin-left:0;margin-right:5px;min-height:220px}
.index-track--mobile::before{top:calc(-1 * clamp(16px,3svh,32px))}
.index-track--mobile .index-slot__outline{height:48px}
.index-track--mobile .index-slot__number{font-size:12px;right:calc(100% + 14px)}
.index-track--mobile .index-slot__node{width:10px;height:10px;left:-4.5px}
.index-toggle--close{position:relative;left:auto;bottom:auto;justify-self:start;min-width:108px;display:flex}
html.index-open{overflow:hidden}
.index-sheet[open] .index-track::before{animation:index-line .36s cubic-bezier(.2,.7,.2,1) both}
.index-sheet[open] .index-slot{animation:index-slot .32s calc(var(--slot) * 40ms) both}
@keyframes index-line{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes index-slot{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}

/* Center the logo + sector controls as one composition, above the viewport midpoint. */
.hero-logo{top:40%}
.world-selector{top:calc(40% + min(5.04vw,86.48px) + clamp(36px,5.5svh,60px));bottom:auto}
.world-selector button{min-height:96px;padding-block:15px;gap:0}
.world-footer button{grid-column:-2 / -1}
@media(max-width:1100px),(max-height:540px){
 .index-rail{display:none}
 .index-toggle{display:flex}
 .world-footer{inset:0;display:block;pointer-events:none}
 .world-footer a{position:absolute;right:26px;bottom:calc(27px + env(safe-area-inset-bottom,0px));min-height:46px;display:flex;align-items:center;font-size:9px}
 .world-footer button{position:absolute;right:26px;top:auto;bottom:calc(27px + env(safe-area-inset-bottom,0px));font-size:9px}
 .world-footer button span{margin-left:10px}
}
@media(max-width:760px){.world-selector{top:calc(40% + 6.45vw + clamp(36px,5.5svh,60px));bottom:auto}.world-selector button{min-height:76px}}
@media(prefers-reduced-motion:reduce){.index-sheet[open] .index-track::before,.index-sheet[open] .index-slot{animation:none}}
