:root{--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1)}
@media(hover:hover) and (pointer:fine){.scene:hover img{transform:scale(1.035)}.pill:hover{transform:translateY(-2px)}}
@media(hover:none){.scene:hover img{transform:none}}
.pill{transition:transform 200ms var(--ease-out)}
.story{position:relative;background:radial-gradient(ellipse at 70% 42%,#e1ecff 0%,#f2f7ff 45%,#f7faff 80%);scroll-margin-top:0}
.story-pin{max-width:1340px;margin:auto;padding:55px 55px 30px;display:flex;flex-direction:column;justify-content:center;min-height:760px}
.story-heading{text-align:center}.story-heading h2{font-size:clamp(30px,3.2vw,48px);margin:14px 0 10px}
.story-layout{display:grid;grid-template-columns: .9fr 1.1fr;align-items:center;gap:40px;flex:1;min-height:420px}
.story-text{position:relative;min-height:290px;padding-left:50px}.story-chapter{padding:20px 0}.chapter-kicker{font-size:11px;color:#6d88b0;letter-spacing:2px;font-weight:650}.story-chapter h3{font-size:clamp(32px,3.4vw,49px);line-height:1.38;letter-spacing:-2px;margin:20px 0}.story-chapter p{font-size:16px;color:#70829d;margin:0;line-height:2}
.puzzle-stage{position:relative;min-height:420px;display:flex;align-items:center;justify-content:center;perspective:1000px}.stage-halo{position:absolute;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,#fff8e6 0%,#e0eafa80 50%,transparent 70%)}.stage-orbit{position:absolute;border:1px solid #bacceb55;border-radius:50%;width:390px;height:390px;transform:rotateX(65deg) rotateZ(-25deg)}.orbit-two{width:450px;height:450px;transform:rotateX(65deg) rotateZ(25deg);opacity:.4}
.puzzle-object{width:320px;height:320px;position:relative;perspective:900px;transform-style:preserve-3d}.puzzle-board{width:300px;height:300px;position:absolute;left:10px;top:0;transform:rotateX(12deg) rotateY(-18deg) rotateZ(-8deg);transform-style:preserve-3d}.story-tile{position:absolute;width:54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:13px;font-weight:700;font-size:21px;box-shadow:inset 2px 3px 5px #ffffffa0,inset -3px -5px 5px #304b6c16,4px 6px 0 var(--side),8px 14px 18px #4a6b9722;background:var(--tile);color:var(--digit);backface-visibility:hidden}.tile-number{transition:opacity 200ms var(--ease-out)}.board-shadow{position:absolute;width:255px;height:36px;border-radius:50%;background:radial-gradient(ellipse,#647ca44a,transparent 70%);bottom:-25px;left:35px}.stage-label{position:absolute;bottom:27px;text-align:center;font-size:13px;letter-spacing:1px;color:#617c9f}.stage-note{position:absolute;bottom:0;font-size:10px;color:#91a2b8}.story-rail{position:relative;display:flex;max-width:430px;gap:60px;justify-content:center;margin:16px auto 0;padding:0 0 16px;width:100%}.rail-item{font-size:12px;white-space:nowrap;color:#97a7bd;transition:color 200ms ease}.rail-item.is-active{color:#345ee8}.rail-track{height:2px;position:absolute;bottom:0;left:0;right:0;background:#dce5f3;overflow:hidden}.rail-fill{height:100%;background:#6787da;transform:scaleX(0);transform-origin:left}.scroll-cue{text-align:center;font-size:11px;color:#8b9db7;margin-top:14px;letter-spacing:1px}
/* The page remains readable before JavaScript, or if it is unavailable. */
.story:not(.is-scroll-ready) .story-chapter{max-width:420px}.story:not(.is-scroll-ready) .story-text{min-height:0}.story:not(.is-scroll-ready) .puzzle-stage{position:sticky;top:30vh}.story:not(.is-scroll-ready) .story-rail{display:none}
.story.is-scroll-ready{height:340svh;min-height:2200px}.is-scroll-ready .story-pin{position:sticky;top:0;height:100svh;min-height:650px;max-height:1100px}.is-scroll-ready .story-chapter{position:absolute;inset:0 0 auto 50px;opacity:0;pointer-events:none}.is-scroll-ready .story-chapter:first-child{opacity:1}.motion-ready .reveal{opacity:0;transform:translateY(30px);transition:opacity 800ms var(--ease-out),transform 800ms var(--ease-out)}.motion-ready .reveal[data-visible]{opacity:1;transform:none}.motion-ready .gallery .scene:nth-child(2){transition-delay:70ms}
@media(max-width:760px){.story-pin{padding:32px 20px 24px;min-height:730px}.story-heading h2{font-size:28px}.story-layout{grid-template-columns:1fr;gap:0;min-height:0;display:flex;flex-direction:column;justify-content:center}.story-text{padding-left:0;min-height:205px;width:100%;text-align:center}.story-chapter{padding:10px 0}.story-chapter h3{font-size:31px;letter-spacing:-1px;margin:12px 0}.story-chapter p{font-size:14px;line-height:1.8}.chapter-kicker{font-size:10px}.is-scroll-ready .story-chapter{inset:0}.puzzle-stage{width:100%;min-height:310px}.puzzle-object{transform:scale(.78);width:320px;height:300px}.stage-halo{width:300px;height:300px}.stage-orbit{width:270px;height:270px}.orbit-two{width:320px;height:320px}.stage-label{bottom:15px;font-size:11px}.stage-note{bottom:-4px}.story-rail{gap:38px;max-width:300px;margin-top:20px}.scroll-cue{font-size:10px;margin-top:12px}.story.is-scroll-ready{height:320svh;min-height:1900px}.is-scroll-ready .story-pin{min-height:700px;max-height:none}.features.reveal{transition-delay:0s}}
@media(max-height:740px) and (min-width:761px){.is-scroll-ready .story-pin{padding-top:20px;padding-bottom:15px;min-height:570px}.story-layout{min-height:340px}.puzzle-stage{min-height:350px}.puzzle-object{transform:scale(.88)}.story-heading h2{font-size:32px}.story-chapter h3{font-size:36px}}
@media(prefers-reduced-motion:reduce){.story.is-scroll-ready{height:auto;min-height:0}.is-scroll-ready .story-pin{position:relative;height:auto;min-height:0;max-height:none}.is-scroll-ready .story-chapter{position:relative;inset:auto;opacity:1!important;transform:none!important;margin-bottom:28px}.story-text{min-height:0}.story-layout{align-items:start}.story-rail,.scroll-cue{display:none}.story-tile{transform:none!important;opacity:1!important}.motion-ready .reveal{opacity:1;transform:none;transition:none}.puzzle-stage{position:sticky;top:20vh}.pill{transition:none}.scene img{transition:none}}
/* Keep departing decorative pieces inside the page without creating a sticky scroll container. */
.story{overflow-x:clip}
