/* Orbital v2: entrance, continuous environment, scroll and explicit feedback. */
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:43% center;opacity:0;transition:opacity .65s;pointer-events:none}
.hero-video.is-playing{opacity:1}
.motion-paused .hero-video{transition:none}
@media(max-width:760px){.hero-video{object-position:20% center}.hero-art{mask-image:linear-gradient(#000 78%,transparent 100%)}}
.hero-art,.intro-complete .hero-art{animation:none;transform:none;will-change:auto}
/* Preserve the wide composition instead of enlarging a 630px-high movie to a full-height viewport. */
@media(min-width:761px){.hero{height:100svh;min-height:0;max-height:1100px}}
.hero-copy,.intro-complete .hero-copy{animation:none}
.hero-copy:before{content:"";position:absolute;inset:-35px -35px -24px -30px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#03070d6b,transparent 75%)}
.hero-copy h1{overflow:hidden}
.hero-copy h1>span{display:inline-block;animation:letter-arrive 1.3s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(.18s + var(--i)*.055s)}
.hero-copy .slogan span{display:inline-block;animation:line-arrive 1.25s .55s cubic-bezier(.16,1,.3,1) both}
.hero-copy .slogan span:last-child{animation-delay:.72s}
.hero-copy .translation{animation:line-arrive 1.3s .85s both}
.hero-copy .explore{animation:line-arrive 1.3s 1.05s both;position:relative;overflow:hidden}
.intro-complete .hero-copy h1>span,.intro-complete .hero-copy .slogan span,.intro-complete .hero-copy .translation,.intro-complete .hero-copy .explore{animation:none}
.explore:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#c2e9ff1a 50%,transparent 75%);transform:translateX(-130%);animation:button-light 6s 3s infinite}
.explore svg{transition:transform .4s cubic-bezier(.16,1,.3,1)}
.explore:hover svg,.explore:focus-visible svg{transform:translateX(7px)}
nav a{position:relative}
nav a:after{content:"";position:absolute;bottom:5px;left:0;right:0;height:1px;background:var(--blue);transform:scaleX(0);transform-origin:left;transition:transform .35s}
nav a:hover:after,nav a:focus-visible:after{transform:scaleX(1)}
.hangar-scene{transform:translate3d(calc(var(--mx,0)*-8px),calc((var(--approach,.5) - .5)*-64px + var(--my,0)*-5px),0) scale(calc(1.09 - var(--approach,.5)*.045 + var(--drift,0)*.006))}
.hangar-light{position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 54% 46%,#b5e5ff19,transparent 40%);animation:hangar-breathe 7s ease-in-out infinite}
.hangar-light:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(175deg,transparent 35%,#97dcff0d 48%,transparent 60%);animation:floor-light 9s ease-in-out infinite}
.chapter{display:flex;align-items:center;gap:11px;font-size:10px!important;letter-spacing:.22em!important;color:#c1d9e9!important;margin:0 0 20px}
.chapter>span{width:5px;height:5px;background:#b5e5ff;border-radius:50%;box-shadow:0 0 12px #b5e5ff;animation:beacon 3s ease-in-out infinite}
.motion-ready [data-reveal] .rule{transform:scaleX(0);transform-origin:left;transition:transform .9s ease}
.motion-ready [data-reveal] h2 span,.motion-ready [data-reveal] .chapter,.motion-ready [data-reveal] .hangar-heading>p{transition:opacity .9s,transform 1s cubic-bezier(.16,1,.3,1)}
.motion-ready .hangar-heading h2 span{display:inline-block;opacity:0;transform:translateY(34px)}
.motion-ready .hangar-heading h2 span:last-child{transition-delay:.15s}
.motion-ready .hangar-heading>.chapter,.motion-ready .hangar-heading>p:not(.chapter){opacity:0;transform:translateY(18px);transition:opacity .8s .25s,transform 1s .25s}
.motion-ready .archive{opacity:0;transform:translateY(38px);transition:opacity .9s .15s,transform 1.1s .15s cubic-bezier(.16,1,.3,1)}
.motion-ready .revealed .rule{transform:scaleX(1)}
.motion-ready .hangar-heading.revealed h2 span,.motion-ready .hangar-heading.revealed>p,.motion-ready .archive.revealed{opacity:1;transform:none}
.archive{position:relative;--accent:#b5e5ff}
.archive-tabs{position:relative}
.archive-tabs button{position:relative;transition:color .25s,background .25s;min-height:116px}
.archive-tabs button:after{content:"";position:absolute;inset:auto 0 -1px;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.archive-tabs button[aria-selected=true]{border-bottom-color:transparent}
.archive-tabs button[aria-selected=true]:after{transform:scaleX(1)}
.tab-icon{display:block;width:27px;height:27px;margin-bottom:17px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s,color .4s;overflow:visible}
.archive-tabs button:hover .tab-icon,.archive-tabs button:focus-visible .tab-icon{transform:translateY(-4px);color:#fff}
[aria-selected=true] .icon-build{stroke-dasharray:100;animation:construct 3.8s ease-in-out infinite}
[aria-selected=true] .icon-write{stroke-dasharray:25;animation:write-lines 3s ease-in-out infinite}
[aria-selected=true] .icon-orbit{transform-origin:12px 12px;animation:orbit 12s linear infinite}
article:not([hidden]) h3{animation:line-arrive .55s cubic-bezier(.16,1,.3,1) both}
article:not([hidden]) p{animation:line-arrive .65s .08s cubic-bezier(.16,1,.3,1) both}
.music{transition:border-color .3s,transform .3s}
.music:hover{border-color:var(--blue);transform:scale(1.06)}
[data-audio-state=playing] .sound-wave{animation:sound-pulse 1.8s ease-in-out infinite}
.motion-control{position:fixed;right:83px;bottom:26px;z-index:20;min-height:44px;display:flex;align-items:center;gap:7px;padding:0 13px;border:1px solid #b4ccdc55;border-radius:24px;background:#06101bea;font-size:10px;letter-spacing:.08em;cursor:pointer}
.motion-control svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3}
.motion-control .play-mark{display:none}.motion-control[aria-pressed=true] .play-mark{display:block}.motion-control[aria-pressed=true] .pause-mark{display:none}
.motion-control:disabled{cursor:default;color:#a7bbc9}
.page-hidden *,.page-hidden *:before,.page-hidden *:after,.motion-paused *,.motion-paused *:before,.motion-paused *:after{animation-play-state:paused!important}
.motion-paused{scroll-behavior:auto}
.motion-paused .hero-copy *,.motion-paused article *{animation:none!important;opacity:1;transform:none}
.motion-paused [data-reveal],.motion-paused [data-reveal] h2 span,.motion-paused [data-reveal]>p,.motion-paused [data-reveal] .rule{opacity:1!important;transform:none!important;transition:none!important}
.motion-paused .scene{transform:none!important}
.hero:not(.scene-visible) .engine,.hangar:not(.scene-visible) .hangar-light,.hangar:not(.scene-visible) .hangar-light:after,.hangar:not(.scene-visible) .tab-icon *{animation-play-state:paused}
@keyframes letter-arrive{from{transform:translateY(110%) rotate(7deg);opacity:0}to{transform:none;opacity:1}}
@keyframes line-arrive{from{transform:translateY(22px);opacity:0}to{transform:none;opacity:1}}
@keyframes button-light{0%,45%{transform:translateX(-130%)}80%,100%{transform:translateX(130%)}}
@keyframes hangar-breathe{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes floor-light{0%,100%{opacity:.1;transform:translateY(20px)}50%{opacity:.75;transform:translateY(-15px)}}
@keyframes beacon{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes construct{0%,100%{stroke-dashoffset:0;opacity:1}50%{stroke-dashoffset:35;opacity:.6}}
@keyframes write-lines{0%,100%{stroke-dashoffset:0}50%{stroke-dashoffset:23}}
@keyframes orbit{to{transform:rotate(360deg)}}
@keyframes sound-pulse{0%,100%{opacity:.35}50%{opacity:1}}
@media(max-width:760px){.motion-control{bottom:16px;right:70px;padding:0 10px;font-size:9px}.hangar-content{padding-top:60px}.archive{margin-top:240px}.tab-icon{width:24px;height:24px;margin-bottom:13px}.chapter{font-size:9px!important}.hero-copy .slogan span{white-space:nowrap}.hero-copy .slogan span:first-child{margin-right:.2em}.hangar{min-height:980px}.hero-art{transform:none}}
@media(prefers-reduced-motion:reduce){.hero-copy *{animation:none!important;opacity:1!important;transform:none!important}.motion-ready [data-reveal],.motion-ready [data-reveal] h2 span,.motion-ready [data-reveal]>p,.motion-ready [data-reveal] .rule{opacity:1!important;transform:none!important}}
/* v3.3: archive tab stagger, hangar text contrast (descent divider removed) */
.motion-ready .archive-tabs button{opacity:0;transform:translateY(18px);transition:opacity .7s,transform .85s cubic-bezier(.16,1,.3,1),color .25s,background .25s}
.motion-ready .archive.revealed .archive-tabs button{opacity:1;transform:none}
.motion-ready .archive.revealed .archive-tabs button:nth-child(1){transition-delay:.3s,.3s,0s}
.motion-ready .archive.revealed .archive-tabs button:nth-child(2){transition-delay:.44s,.44s,0s}
.motion-ready .archive.revealed .archive-tabs button:nth-child(3){transition-delay:.58s,.58s,0s}
.hangar-heading>p{text-shadow:0 1px 18px #000,0 0 40px #000a}
@media(prefers-reduced-motion:reduce){.motion-ready .archive-tabs button{opacity:1!important;transform:none!important;animation:none!important}}
.motion-paused .archive-tabs button{opacity:1!important;transform:none!important;transition:none!important}
