/* One page system: photograph = real life, pixel world = the game, paper = the workshop.
   Only the two photographic chapters (hero, keepsake) arrive as covering sheets. */
.story-home{--ol-ink:#17151b;--ol-accent:var(--purple);--ol-accent-mid:var(--purple-deep);--ol-accent-soft:var(--ink-soft);--ol-accent-wash:#eee7ff;--ol-accent-line:var(--purple-wash);--ol-paper:#faf7ef;--ol-kraft:#ebe1d1;--ol-stone:#2a164c;--ol-yellow:var(--yellow)}

/* Pin the game world only where it fits on one screen. Elsewhere it scrolls normally
   and the keepsake sheet still arrives with its rounded, shadowed edge. */
@media(max-width:760px),(max-height:759px){.story-world{position:relative;top:auto}}
/* Where it pins, leave a quiet runway so the last row sits mid-screen before the cover starts. */
@media(min-width:761px) and (min-height:760px){.story-landscape+.imagination-section{padding-bottom:max(96px,18vh)}}

/* Sky caption: legible on every part of the gradient. */
.imagine-section .imagine-disclosure{display:table;margin-inline:auto;padding:5px 14px;border-radius:999px;background:#0a3f8f;color:#fff;text-shadow:none;font-size:13px}

/* Pixel art at a whole-number scale (2×) where the crop keeps the sign and Lu in view. */
@media(min-width:1100px) and (max-width:1536px){
 .world-art{width:1536px}
 .world-stage{height:672px}
}

/* Keepsake: the brand-purple accent as the rest of the paper. Composition untouched. */
.story-home .ks-section{--ks-purple:var(--ol-accent)}
.ks-eyebrow{color:var(--ol-accent)}.ks-eyebrow span{background:var(--ol-accent-line)}

/* Keepsake -> pricing: one continuous paper surface, separated by space and a quiet rule. */
.story-home :is(#pricing,#why,#start-your-game,.ol-page-footer)::after{display:none}
/* A short pixel trail leads out of the keepsake to Lu, who points the reader back to the start: making the game. */
.story-home #pricing{padding-top:0}
.pricing-bridge{display:flex;flex-direction:column;align-items:center;margin:0 auto 40px;text-align:center}
.pricing-bridge-trail{width:6px;height:84px;background:linear-gradient(var(--ol-accent) 0 6px,transparent 6px) 0 0/6px 18px repeat-y;opacity:.45}
.pricing-bridge-lu{width:88px;height:88px;margin-top:-30px;background:url('/site/story/assets/lu/runner.png') 33.3333% 0/1000% 100% no-repeat;image-rendering:pixelated}
.story-home .pricing-bridge-note{margin:6px 0 0;max-width:none;font:500 clamp(20px,1.7vw,25px)/1.25 var(--hand,'Shantell Sans',cursive);color:var(--ol-accent);rotate:-2deg}
.creation-keepsake-note{background:transparent;border-top:1px solid var(--ol-accent-line);border-radius:0;padding:22px 4px 0;margin-top:34px}
.creation-keepsake-note>svg{width:34px;height:40px}
.story-home .creation-keepsake-note h3{font-size:17px}
@media(max-width:760px){
 .pricing-bridge{align-items:flex-start;margin-bottom:30px;text-align:left}
 .pricing-bridge-trail{height:56px;margin-left:33px}
 .pricing-bridge-lu{width:64px;height:64px;margin:-20px 0 0 4px}
 .story-home .pricing-bridge-note{font-size:20px}
 .creation-keepsake-note{padding:20px 0 0}
}

/* Founder: a deeper kraft chapter; the storyboard is one light notebook panel inside it. */
.story-home #why{background:var(--ol-kraft)}
.proof-byline .hand-note{color:var(--ol-accent)}
.proof-disclosure,.story-proof .founder-game figcaption{color:var(--ol-accent-soft)}
.journey-storyboard-disclosure{border-color:#5b21ff40}
.journey-storyboard-disclosure>summary{color:var(--ol-ink)}
.journey-disclosure-chevron{color:var(--ol-accent)}
.journey-storyboard-disclosure>summary small{color:var(--ol-accent-soft)}
.journey-storyboard-disclosure .storyboard-section{background:var(--ol-paper);box-shadow:0 1px 0 #5b21ff1f}
.story-home .journey-storyboard-disclosure .storyboard-heading h2{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.035em}
.journey-storyboard-disclosure .storyboard-heading>p{font-size:16px;margin-top:14px}
/* Storyboard controls and annotations use the shared purple and ink palette. */
.storyboard-toolbar>div>span,.beat-navigation .beat-count,.beat-feeling,.beat-rail-hint,.beat-preview figcaption,.beat-design-note,.beat-source,.beat-scene-frames figcaption,.storyboard-disclosure{color:var(--ol-accent-soft)}
.beat-navigation button{background:var(--ol-accent-wash);border-color:var(--ol-accent-line);color:var(--ol-accent)}
.beat-card-top,.beat-node.is-expanded .beat-card-top small,.beat-scene-frames b,.beat-collapse{color:var(--ol-accent-mid)}
.beat-card{border-color:#d9d3c6;box-shadow:0 3px 0 #e4ddcf}
.beat-card:hover{border-color:var(--ol-accent)}
.beat-card[aria-pressed=true]{background:var(--ol-accent-wash);border-color:var(--ol-accent);box-shadow:0 3px 0 var(--ol-accent)}
.beat-card:focus-visible,.beat-navigation button:focus-visible{outline-color:var(--ol-accent)}
.beat-rail{border-color:#e4ddcf;background:none;scrollbar-color:var(--purple-wash) var(--ol-accent-wash)}
.beat-connections path{stroke:#b39ae9}
.beat-node-note,.storyboard-close>span,.beat-rail-hint>span:first-child{color:var(--ol-accent)}
.beat-node.is-expanded{border-color:var(--ol-accent-line);box-shadow:0 8px 25px #10283312}
.beat-detail-kicker,.beat-intent h4{color:var(--ol-accent)}
.beat-intent p{color:var(--ink-soft)}
.beat-photo-sketch{background:#efe9dd;color:#8a8170}

/* Inquiry: light paper again, and the same yellow primary button as every other "Tell your story". */
.story-home #start-your-game{scroll-margin-top:0}
.story-home #intake-title{text-wrap:balance}
.ending .slab.signup-submit{background:var(--ol-yellow);color:var(--ol-ink);border-color:var(--ol-ink);box-shadow:inset 0 0 0 2px #fff0a6,0 5px 0 var(--ol-ink)}
.ending .slab.signup-submit:hover{background:#ffdb51}
.ending .slab.signup-submit:active{box-shadow:inset 0 0 0 2px #fff0a6,0 1px 0 var(--ol-ink)}
/* Short desktop screens: an anchored form shows its submit button without scrolling. */
@media(min-width:761px) and (max-height:760px){
 .story-home #start-your-game{padding-top:36px}
 .story-home .ticket .signup-title{font-size:clamp(36px,4vw,52px);margin-bottom:10px}
 .story-invitation .intake-intro{margin-bottom:6px}
 .story-home .ticket textarea{min-height:84px}
 .story-home .ticket form>label{margin-top:14px}
}

/* Footer: paper, with Lu's run along a stone ground (the page's last glimpse of the game world). */
.story-home .ol-page-footer,.site-head.ol-animated-header.ol-footer-nav{background:var(--ol-paper)}
.ol-page-footer{border-top:1px solid #5b21ff26}
/* The stone ground Lu runs on: one full brick course of the world tile at its 3x scale
   (tile rows 2-17 = 48px). The strip existed before but never rendered: it had no content. */
.site-head.ol-animated-header.ol-footer-nav{--ground:48px}
.site-head.ol-animated-header.ol-footer-nav::before{content:'';z-index:0;height:var(--ground);background:#102b38 url('/site/story/assets/transition/blue-stone-tile.png') center -6px/192px 192px repeat-x}
.site-head.ol-footer-nav .wrap{padding-bottom:calc(36px + var(--ground))}
/* runner cells keep 7% of their height below Lu's feet; landing.js reads this bottom as the ground line. */
.site-head.ol-footer-nav .runner{display:block;bottom:calc(var(--ground) - 90px * .07)}
.ol-footer-links a:focus-visible{outline:3px solid var(--ol-accent);outline-offset:3px}

/* Masthead: the full wordmark opens the content sheet; the small travelling logo only takes over once it has scrolled away. */
.imagine-brand{display:block;width:clamp(150px,13vw,200px);height:auto;margin:0 0 26px -12px}
@media(max-width:760px){.imagine-brand{width:128px;margin:0 0 18px -9px}}

/* Travelling logo: appears once the masthead wordmark has scrolled away. */
.ol-scroll-brand{box-shadow:0 2px 10px #10283326;transition:translate .25s ease,opacity .25s ease}
.ol-scroll-brand.is-tucked:not(:focus-visible){translate:0 -110%;opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.ol-scroll-brand{transition:none}}

/* Small screens have no spare margin for a floating brand badge over the copy.
   The hero and footer retain the full brand; keyboard users can reveal this link. */
@media(max-width:1100px){.story-home .ol-scroll-brand:not(:focus-visible){opacity:0;pointer-events:none}}

/* The footer actor must sit above its ground and the paper navigation row. */
.site-head.ol-footer-nav .runner{z-index:2;image-rendering:pixelated}
.story-home #pricing{padding-top:64px}
