/* The content sheet travels over the pinned photographic hero. */
body.story-home{background:#382519;overflow-x:clip;--ol-header-height:0px}
.story-home .ol-hero{position:sticky;top:0;z-index:0}
.ol-page-content{position:relative;z-index:2;background:#fffbf2;border-radius:24px 24px 0 0;box-shadow:0 -10px 32px #160a071c}
.story-home #your-idea{padding-top:104px;scroll-margin-top:0;border-radius:24px 24px 0 0}
.story-home section[id]{scroll-margin-top:80px}
.ol-brand-track{position:sticky;top:0;height:0;z-index:80;pointer-events:none}
.ol-scroll-brand{position:absolute;left:18px;top:12px;width:76px;padding:6px;background:#fffbf2ed;border-radius:10px;pointer-events:auto}
.ol-scroll-brand img{display:block;width:100%;height:auto}
.ol-scroll-brand:focus-visible{outline:3px solid #6424ff;outline-offset:3px}
.ol-page-footer{position:relative;z-index:3;padding-block:0;border-top:0}
.site-head.ol-animated-header.ol-footer-nav{position:relative;inset:auto;visibility:visible;transform:none;z-index:1;padding-top:0;transition:none;overflow:clip;border-bottom:0}
.site-head.ol-footer-nav .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 32px;height:auto;min-height:110px;padding-top:28px;padding-bottom:36px}
.site-head.ol-footer-nav .wrap>a:first-child{grid-column:1;grid-row:1;align-self:center;justify-self:start;text-decoration:none}
.ol-footer-copyright{grid-column:1;grid-row:2;margin:0;max-width:none;font:14px/1.5 Arial,sans-serif}
.ol-footer-actions{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:28px}
.ol-footer-cta{flex:none;min-height:44px;font-size:16px}
.site-head .ol-footer-cta.stomp{translate:-4px 5px;--layer:0px 0px}
.ol-footer-links{display:flex;align-items:center;gap:24px;font:14px/1.5 Arial,sans-serif}
.ol-footer-links a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px;white-space:nowrap}
@media(max-width:760px){
 .story-home #your-idea{padding-top:82px}
 .ol-scroll-brand{left:12px;top:10px;width:60px;padding:5px;border-radius:8px}
 .site-head.ol-footer-nav .wrap{grid-template-columns:1fr;gap:16px;padding-top:28px;padding-bottom:36px}
 .ol-footer-copyright{font-size:12px}
 .ol-footer-actions{grid-column:1;grid-row:3;width:100%;gap:16px;justify-content:space-between}
 .ol-footer-links{gap:16px;font-size:12px}
}

/* The opening photograph covers the large Safari viewport, including browser-chrome
   expansion. The following sheet starts below it, never peeking in before scrolling. */
html:has(body.story-home){background:#382519}
.story-home .ol-hero{
 --ol-hero-height:max(100lvh,calc(100svh + env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)),var(--ol-phone-height,0px));
 height:var(--ol-hero-height);min-height:100svh
}
.story-home .ol-page-content{border-radius:0;box-shadow:none}
.story-home #your-idea{border-radius:0}
.story-home .story-world{position:relative;top:auto}
.story-home #bench{scroll-margin-top:0}
@media(max-width:760px){
 .story-home .ol-copy{top:max(24px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));width:calc(100% - 44px)}
 .story-home .ol-hero-brand,.story-home .ol-carousel-controls{bottom:calc(var(--ol-hero-height) - 100svh + max(14px,env(safe-area-inset-bottom)))}
 .story-home .ol-output{bottom:calc(var(--ol-hero-height) - 100svh + 90px)}
}

@media(max-width:760px) and (orientation:portrait){
 .story-home .ol-hero .ol-body-copy{max-width:100%;font-size:17px;line-height:1.4;margin:18px 0}
}
@media(max-width:760px) and (max-height:740px) and (orientation:portrait){
 .story-home .ol-hero .ol-body-copy{font-size:15px;line-height:1.35;margin:14px 0}
}

@media(max-width:360px){.story-home .ol-hero-brand span{display:none}}
@media(max-width:760px) and (max-height:640px) and (orientation:portrait){
 .story-home .ol-lu-scene{top:75%;width:54vw}
}
@media(orientation:landscape) and (max-height:500px){
 .story-home .ol-copy{width:44cqw;left:4cqw;top:22px}
 .story-home .ol-output{bottom:18px}
}
@media(max-width:760px) and (orientation:portrait){
 /* Keep white copy readable across the bright sunset, without dimming Lu or the TV. */
 .story-home .ol-shade{background:linear-gradient(180deg,#0007 0%,#0009 42%,transparent 64%),linear-gradient(90deg,#0003,transparent 80%)}
}
/* Section anchors settle before the scroll-driven journey starts; a pending
   document-wide smooth scroll must not compete with direct wheel/key input. */
html:has(body.story-home){scroll-behavior:auto}
