/* One native document, one sticky stage. Without JS every chapter is a still. */
#narrative{--story-header:80px;--story-h:calc(100svh - var(--story-header));position:relative;background:#fbf7f0;border-top:1px solid var(--line)}
.narrative-stage{display:none}
.narrative-step{padding:64px clamp(24px,4.6vw,88px);border-bottom:1px solid var(--line)}
.narrative-copy{max-width:1100px;margin:auto}
.narrative-copy h2{font:400 clamp(34px,3.5vw,54px)/1.08 "Space Grotesk",sans-serif;letter-spacing:-.055em;margin:24px 0}
.narrative-copy p{font-size:16px;line-height:1.7;max-width:36em}
.narrative-copy .eyebrow{font-size:10px;letter-spacing:.08em}
.narrative-caption{font-size:11px!important;color:var(--muted)}
.narrative-caption{display:block;margin-top:28px;padding-top:14px;border-top:1px solid var(--line)}
.narrative-still{display:block;width:100%;height:auto;max-height:65svh;object-fit:contain;margin:24px auto 0}
.narrative-areas{list-style:none;margin:25px 0;padding:0;display:grid;gap:16px}
.narrative-areas li{border-left:2px solid #e2552a;padding-left:14px}
.narrative-areas li:nth-child(2){border-color:#4d7b56}.narrative-areas li:nth-child(3){border-color:#303b32}
.narrative-areas b,.narrative-areas span{display:block;font-size:13px;line-height:1.6}.narrative-areas b{font-weight:500}
.narrative-decision{font-size:13px!important;border-top:1px solid var(--line);padding-top:18px}
#narrative.narrative-live .narrative-stage{display:block;position:sticky;top:var(--story-header);height:var(--story-h);margin-bottom:calc(-1 * var(--story-h));overflow:hidden;pointer-events:none}
.narrative-live .narrative-viewport{position:absolute;left:35%;right:0;top:70px;bottom:66px}
.narrative-viewport #viewport{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;pointer-events:none}
.narrative-viewport canvas{display:block;width:100%;height:100%}
.narrative-live .narrative-step{position:relative;min-height:120svh;padding-top:110px;padding-bottom:20svh;border:0;pointer-events:none;box-sizing:border-box}
.narrative-live .narrative-copy{width:31%;margin:0;pointer-events:auto;position:sticky;top:calc(var(--story-header) + 110px)}
.narrative-live .narrative-still{display:none}
.narrative-live .narrative-week{min-height:90svh}
.narrative-live .narrative-finale{min-height:115svh}
.narrative-rule,.narrative-foot{position:absolute;left:4.6%;right:4.6%;display:flex;justify-content:space-between;font:10px/1.4 ui-monospace,monospace;letter-spacing:.08em;color:#68715f;z-index:2}
.narrative-rule{top:28px;border-bottom:1px solid var(--line);padding-bottom:16px}.narrative-foot{bottom:26px;letter-spacing:0}
.narrative-foot span:last-child{font-size:18px}
.narrative-board{position:absolute;right:5%;bottom:90px;display:grid;gap:6px;background:#fbf7f0ed;border-left:2px solid #bc481f;padding:14px 18px;opacity:0;min-width:180px}
.narrative-board span{font-size:10px;color:var(--muted);margin-bottom:4px}.narrative-board b{font-size:12px;font-weight:400}.narrative-board b:before{content:'✓';color:#4d7b56;margin-right:10px}
#experience.narrative-away .city-poster{opacity:1}#experience.narrative-away #labels,#experience.narrative-away #markers,#experience.narrative-away .city-signal,#experience.narrative-away #ai-label{visibility:hidden}
@media(max-width:760px){
 #narrative{--story-header:68px}
 .narrative-live .narrative-step{min-height:125svh;padding:86px 24px 60svh}
 .narrative-live .narrative-week{min-height:105svh}
 .narrative-live .narrative-copy{width:100%;top:144px;max-width:480px}
 .narrative-copy h2{font-size:34px;margin:16px 0;max-width:340px}
 .narrative-copy p{font-size:14px;line-height:1.6;margin:12px 0}
 .narrative-copy .eyebrow{font-size:9px}
 .narrative-caption{margin-top:16px;padding-top:9px}
 .narrative-areas{gap:8px;margin:16px 0}.narrative-areas b,.narrative-areas span{font-size:11px;line-height:1.5}
 .narrative-decision{font-size:11px!important;padding-top:10px}
 .narrative-live .narrative-viewport{left:0;right:0;top:46%;bottom:60px}
 .narrative-rule{left:24px;right:24px;top:23px;font-size:8px}.narrative-foot{left:24px;right:24px;bottom:20px;font-size:8px}
 .narrative-board{bottom:64px;right:18px;padding:8px 12px;min-width:140px;gap:2px}.narrative-board span{font-size:8px}.narrative-board b{font-size:10px}
}
@media(prefers-reduced-motion:reduce){#narrative .narrative-stage{display:none}#narrative .narrative-step{min-height:0;padding:48px 24px;border-bottom:1px solid var(--line)}#narrative .narrative-copy{width:auto;position:static}#narrative .narrative-still{display:block}}
/* Presentation position changes; source order and screen-reader text do not. */
.narrative-live .narrative-step{position:static}
.narrative-live .narrative-copy{position:absolute;left:4.6%;top:calc(var(--story-top,0px) + 110px);opacity:0;pointer-events:none;transition:opacity .2s ease}
.narrative-live .narrative-copy.is-current{opacity:1;pointer-events:auto}
@media(max-width:760px){.narrative-live .narrative-copy{left:24px;top:calc(var(--story-top,0px) + 86px);width:calc(100% - 48px)}}
@media(prefers-reduced-motion:reduce){#narrative .narrative-copy{position:static;opacity:1;pointer-events:auto;transition:none}}
body.in-narrative>.sticky{display:none}
#narrative #co-ceo{padding:14px 0 0;margin-top:18px;border-radius:0;overflow:visible}
/* Clip the negative-margin sticky stage at the end of its own story. */
#narrative{overflow:clip}
@media(min-width:761px){.narrative-board{top:112px;bottom:auto}}
/* Short viewports retain the complete ordinary-flow story. */
@media(max-width:760px){.narrative-board{top:40%;bottom:auto}}
.narrative-live .narrative-step{scroll-margin-top:calc(var(--story-header) - 101px)}
@media(min-width:761px){
 #narrative:not(.narrative-live) .narrative-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:0 60px;align-content:center}
 #narrative:not(.narrative-live) .narrative-copy>*{grid-column:1}
 #narrative:not(.narrative-live) .narrative-still{grid-column:2;grid-row:1 / span 8;align-self:center;margin:0}
}
/* UNIT14: a single, larger stage with room for the board above the building. */
.narrative-live .narrative-viewport{left:35%;right:2%;top:150px;bottom:70px}
.narrative-backlog{position:absolute;left:40%;top:105px;display:flex;align-items:center;gap:12px;color:#ad4032;opacity:0}
.narrative-backlog strong{font:400 52px/1 'Space Grotesk',sans-serif;letter-spacing:-.05em}
.narrative-backlog span{font:11px/1.5 Inter,sans-serif;max-width:90px}
.narrative-board{left:46%;right:10%;top:92px;bottom:auto;min-width:0;padding:20px 24px;gap:9px;border:1px solid #b7bbaa;border-top:3px solid #68785f;border-radius:3px;box-shadow:0 12px 30px #303b3210;transform:scale(var(--board-scale,.86));transform-origin:50% 0;background:#f7f1e6}
.narrative-board:after{content:'';position:absolute;left:50%;top:100%;height:36px;border-left:1px solid #8c9a7f}
.narrative-board span{font:400 19px/1.3 'Space Grotesk',sans-serif;color:#303b32;margin-bottom:4px}
.narrative-board b{font-size:14px}.narrative-day{position:absolute;right:20px;bottom:18px;font:10px/1 ui-monospace,monospace;color:#8d573b}
.narrative-live[data-chapter='4'] .narrative-viewport{top:290px;bottom:60px}
.narrative-live[data-chapter='5'] .narrative-viewport{top:240px;bottom:35px}
#experience.narrative-bridge .city-poster{opacity:0}
@media(max-width:760px){
 .narrative-live .narrative-copy{top:calc(var(--story-top,0px) + 76px)}
 .narrative-copy h2{font-size:30px;line-height:1.08;margin:12px 0}
 .narrative-copy p{font-size:13px;line-height:1.55;margin:10px 0}
 .narrative-live .narrative-caption{display:none}
 .narrative-areas{gap:5px;margin:12px 0}.narrative-areas li{padding-left:10px}
 .narrative-areas b,.narrative-areas span{font-size:10px;line-height:1.4}
 #narrative #co-ceo{margin-top:10px;padding-top:8px;font-size:10px!important}
 .narrative-live .narrative-viewport{left:8px;right:8px;top:315px;bottom:75px}
 .narrative-live[data-chapter='2'] .narrative-viewport{top:350px;bottom:94px}
 .narrative-backlog{left:24px;top:260px;gap:8px}.narrative-backlog strong{font-size:38px}.narrative-backlog span{font-size:9px;max-width:100px}
 .narrative-board{left:24px;right:24px;top:275px;padding:12px 14px;gap:6px;transform:none}
 .narrative-board span{font-size:16px}.narrative-board b{font-size:11px}.narrative-day{right:14px;bottom:12px;font-size:9px}
 .narrative-board:after{height:22px}
 .narrative-live[data-chapter='4'] .narrative-viewport{top:435px;bottom:40px}
 .narrative-live[data-chapter='5'] .narrative-viewport{top:345px;bottom:40px}
}



.narrative-static-board{list-style:none;padding:16px 20px;border-left:2px solid #68785f;font-size:13px;line-height:1.8}.narrative-static-board li:before{content:'✓';color:#4d7b56;margin-right:10px}.narrative-live .narrative-static-board{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Unit 15: compact cumulative board, with a reserved, unobstructed model area. */
.narrative-live .narrative-copy{transition:opacity .22s ease}.narrative-live .narrative-copy.is-current{transition:opacity .45s ease .2s}
.narrative-board{left:41%;right:6%;top:86px;padding:14px 18px;gap:6px;transform:none;box-shadow:0 6px 20px #303b320a}
.narrative-board span{font-size:17px;margin:0 0 2px}
.narrative-board b{font-size:12px;line-height:1.45}
.narrative-board:after{height:18px}
.narrative-day{position:static;justify-self:end;margin-top:2px}
.narrative-live[data-chapter='4'] .narrative-viewport{top:290px;bottom:50px}
@media(max-width:760px){
 .narrative-board{left:24px;right:24px;top:245px;padding:12px 14px;gap:5px;grid-template-columns:1fr 1fr}
 .narrative-board span{grid-column:1 / -1;font-size:15px;margin-bottom:2px}
 .narrative-board b{font-size:10px;line-height:1.5}
 .narrative-board b:before{margin-right:5px}
 .narrative-day{grid-column:1 / -1;font-size:10px}
 .narrative-live[data-chapter='4'] .narrative-viewport{top:375px;bottom:45px}
}

@media(max-width:760px){
 .narrative-rule{font-size:9px;letter-spacing:.04em}
 .narrative-foot{font-size:10px;letter-spacing:0}
 .narrative-areas b,.narrative-areas span{font-size:11px}
}

/* Unit 19: controls belong to the reader, separate from the illustrative stage. */
.story-controls{position:sticky;top:calc(var(--story-header) + 12px);z-index:8;height:44px;margin:12px 4.6% -56px;display:flex;justify-content:flex-end;align-items:center;gap:12px;pointer-events:none}
.story-controls a,.story-controls button{pointer-events:auto;min-height:44px;display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #c7c5b6;border-radius:3px;background:#f7f1e6;color:#354b40;font:500 13px Inter,sans-serif;text-decoration:none;cursor:pointer}
.story-controls [hidden]{display:none}
.story-controls a:last-child{color:#a13c20;border-color:#bb8e77}
.narrative-rule{top:72px;padding-bottom:10px}
.narrative-live .narrative-copy{top:calc(var(--story-top,0px) + 130px)}
.narrative-live .narrative-step{min-height:105svh;scroll-margin-top:calc(var(--story-header) - 100px)}
.narrative-live .narrative-week{min-height:78svh}
.narrative-live .narrative-finale{min-height:112svh}
.narrative-step{padding-top:110px}
.story-offer-link{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;font-size:14px;color:#a13c20;text-underline-offset:5px}
@media(max-width:760px){
 .story-controls{margin-left:20px;margin-right:20px;gap:6px;justify-content:space-between}
 .story-controls a,.story-controls button{padding:8px;font-size:12px}
 .narrative-rule{top:66px;font-size:10px}
 .narrative-rule span:first-child{letter-spacing:0}
 .narrative-live .narrative-copy{top:calc(var(--story-top,0px) + 104px)}
 .narrative-copy p{font-size:15px;line-height:1.55}
 .narrative-copy .eyebrow{font-size:11px;letter-spacing:.04em}
 .narrative-areas b,.narrative-areas span{font-size:14px;line-height:1.4}
 #narrative #co-ceo{font-size:14px!important}
 .narrative-live .narrative-viewport,.narrative-live[data-chapter] .narrative-viewport{top:var(--story-scene-top,370px);bottom:62px}
 .narrative-board{top:var(--story-board-top,310px)}
 .narrative-board b{font-size:12px}
 .narrative-backlog{top:var(--story-backlog-top,300px)}
 .narrative-backlog span{font-size:12px;max-width:140px}
 .narrative-live .narrative-step{min-height:105svh;padding-bottom:40svh}
 .narrative-live .narrative-week{min-height:85svh}
 .narrative-live .narrative-finale{min-height:112svh}
 #narrative:not(.narrative-live) .narrative-copy{padding-top:0}
 .narrative-foot{font-size:10px;bottom:18px}
}
@media(prefers-reduced-motion:reduce){#narrative .narrative-step{padding-top:90px}}

body.reading-story>.sticky{display:none}

@media(min-width:761px){.narrative-board{top:116px}.narrative-live[data-chapter='4'] .narrative-viewport{top:320px}.narrative-backlog{top:135px}}

.narrative-live .narrative-step{scroll-margin-top:0}

/* Q1: chapter 5 and the exit. Legend of seven firms, five-part track, counting prices, fading stage. */
.narrative-track{position:absolute;left:0;right:0;top:0;height:3px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;pointer-events:none}
.narrative-track i{display:block;background:var(--line);position:relative;overflow:hidden}
.narrative-track i:after{content:'';position:absolute;inset:0;background:#c15b36;transform-origin:left;transform:scaleX(var(--f,0))}
.narrative-live .narrative-viewport{opacity:calc(1 - var(--story-out,0) * .92);transform:translateY(calc(var(--story-out,0) * -18px)) scale(calc(1 - var(--story-out,0) * .05));transform-origin:50% 60%}
.narrative-live .narrative-finale{min-height:190svh}
.narrative-num{font-variant-numeric:tabular-nums}
@media(max-width:760px){
 .narrative-track{height:3px;gap:3px}
 .narrative-live .narrative-finale{min-height:190svh}
 .story-controls{gap:4px}
 .story-controls a,.story-controls button{padding:8px 7px;font-size:12px}
}

/* Unit 20: no copy under 12 px, calmer finale, shorter dead space on phones. */
.narrative-rule,.narrative-foot,.narrative-day{font-size:12px}
.narrative-backlog span,.narrative-board span:not(:first-child){font-size:12px}
.narrative-caption{font-size:12px!important}
@media(max-width:760px){
 .narrative-rule,.narrative-foot,.narrative-day{font-size:12px}
 .narrative-rule,.narrative-foot{left:20px;right:20px}
 .narrative-foot{letter-spacing:-.01em}
 .narrative-backlog span{font-size:12px}
 .narrative-board b{font-size:12px}
}

/* Unit 21: shorter story. Chapters 1, 3 and 5 keep their breath; the four "how it works" steps and chapter 2 pass faster. Copy is out of flow, so the step height is pure scroll distance. */
#narrative.narrative-live .narrative-step{min-height:80svh;padding-top:0;padding-bottom:0}
#narrative.narrative-live #co-robimy{min-height:100svh}   /* the last chapter since the finale folded into it: it needs the finale's scroll length before the AI Co-CEO section rises */
#narrative.narrative-live .narrative-week{min-height:34svh}
#narrative.narrative-live .narrative-finale{min-height:170svh}

/* Unit 22: the controls never sit on chapter text. Live: they ride the story (same coordinate as the copy), so they leave with it at the end. Static: a thin translucent bar at the bottom while the story is on screen. */
.narrative-live .story-controls{position:absolute;left:4.6%;right:4.6%;top:calc(var(--story-top,0px) + 12px);margin:0}
#narrative:not(.narrative-live) .story-controls{position:fixed;left:0;right:0;top:auto;bottom:0;height:auto;margin:0;padding:6px max(20px,4.6%);background:#fbf7f0e6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);transform:translateY(100%);transition:transform .25s ease;pointer-events:none;z-index:40;box-sizing:border-box}
body.story-bar #narrative:not(.narrative-live) .story-controls{transform:none}
body.story-bar #narrative:not(.narrative-live) .story-controls a,body.story-bar #narrative:not(.narrative-live) .story-controls button{pointer-events:auto}
#narrative:not(.narrative-live) .story-controls a,#narrative:not(.narrative-live) .story-controls button{min-height:44px;background:transparent}
/* The pinned stage leaves with the story's last screen instead of being clipped under the copy. */
#narrative.narrative-live .narrative-stage{transform:translateY(calc(var(--story-shift,0px) * -1))}

/* T2: the stage grows out of the paper (soft edges, no tile), the counter gets room, the left column carries the chapter index. */
.narrative-live .narrative-viewport{
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 80%,transparent 100%),linear-gradient(180deg,transparent 0,#000 20%,#000 82%,transparent 100%);
 -webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 80%,transparent 100%),linear-gradient(180deg,transparent 0,#000 20%,#000 82%,transparent 100%);
 mask-composite:intersect}
.narrative-backlog{left:calc(35% + 70px);padding:6px 0 6px 16px;border-left:2px solid #ad4032;background:linear-gradient(90deg,#fbf7f0 70%,#fbf7f000)}
@media(min-width:761px){.narrative-backlog{top:150px}}
@media(max-width:760px){.narrative-backlog{left:24px;padding-left:12px}
 .narrative-live .narrative-viewport{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 10%,#000 90%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 10%,#000 90%,transparent 100%)}}

/* U35: the last screen stays pinned while the AI Co-CEO section rises over it (no empty paper strip, no pinned control left on the dark section). */
#narrative.narrative-live::after{content:'';display:block;height:var(--story-h)}
#narrative+#ai-co-ceo{--story-header:80px}
@media(max-width:760px){#narrative+#ai-co-ceo{--story-header:68px}}
#narrative.narrative-live+#ai-co-ceo{position:relative;z-index:3;margin-top:calc(var(--story-header) - 100svh)}
.narrative-live .narrative-viewport{opacity:1;transform:none}
.narrative-live .narrative-rule,.narrative-live .narrative-foot{opacity:calc(1 - var(--story-exit,0) * 4)}
.narrative-live .story-controls{opacity:calc(1 - var(--story-exit,0) * 4)}
.narrative-live .narrative-copy.is-current{opacity:calc(1 - var(--story-exit,0) * .6)}

/* W1: a larger stage, the "what is built" card moves to the text column so every step has the full scene, a big missed-calls counter. */
@media(min-width:761px){
 .narrative-live .narrative-viewport,.narrative-live[data-chapter] .narrative-viewport{left:36%;right:1%;top:150px;bottom:70px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent 100%)}
 .narrative-live[data-chapter='4'] .narrative-viewport{top:120px;bottom:60px}
 .narrative-board{left:4.6%;right:auto;width:calc(31% - 8px);top:var(--story-board-top,400px);box-sizing:border-box}
 .narrative-board:after{display:none}
 .narrative-backlog{left:calc(36% + 24px);top:132px;gap:16px}
 .narrative-backlog strong{font-size:clamp(64px,6vw,88px)}
 .narrative-backlog span{font-size:14px;max-width:130px}
}
@media(max-width:760px){
 .narrative-backlog{gap:10px}
 .narrative-backlog strong{font-size:56px}
 .narrative-backlog span{max-width:120px}
}

/* E2: one continuous scene. The canvas is the whole stage on desktop (the building is composed into its right part, narrative-scene.js PANE); the chapter text rides over it on a soft paper plate. */
@media(min-width:761px){
 #narrative.narrative-live .narrative-viewport,#narrative.narrative-live[data-chapter] .narrative-viewport{left:0;right:0;top:40px;bottom:0;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 94%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 94%,transparent 100%);
  -webkit-mask-composite:source-over;mask-composite:add}
 #narrative.narrative-live .narrative-stage::after{content:'';position:absolute;left:0;top:0;bottom:0;width:46%;z-index:1;background:linear-gradient(90deg,#fbf7f0f2 0,#fbf7f0e0 52%,#fbf7f000 100%);pointer-events:none}
 #narrative.narrative-live .narrative-backlog,#narrative.narrative-live .narrative-board,#narrative.narrative-live .narrative-night{z-index:2}
}
/* One screen for chapter 5 (the night plays in time, it does not need two screens of scroll). */
.narrative-live .narrative-finale,#narrative.narrative-live .narrative-finale{min-height:135svh}

/* Z4: chapter 5 runs through one night. The dial and the caption sit on the model; the sky itself is the scene background. */
.narrative-night-stills{display:none}
/* The two captured night frames already show the finale; the fixed fallback image is only for when they cannot be taken (each image once). */
.narrative-copy:has(.narrative-night-stills) > .narrative-still{display:none}
#narrative:not(.narrative-live) .narrative-night-stills{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0 0;grid-column:1 / -1}
#narrative:not(.narrative-live) .narrative-night-stills img{width:100%;height:auto;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 8%,#000 90%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 8%,#000 90%,transparent 100%);mask-composite:intersect}
#narrative:not(.narrative-live) .narrative-night-stills figcaption{grid-column:1 / -1;font-weight:500;font-size:14px;line-height:1.4;color:#26382d}
@media(prefers-reduced-motion:reduce){#narrative .narrative-night-stills{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0 0}#narrative .narrative-night-stills img{width:100%;height:auto;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 8%,#000 90%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(180deg,transparent 0,#000 8%,#000 90%,transparent 100%);mask-composite:intersect}#narrative .narrative-night-stills figcaption{grid-column:1 / -1}}

/* N1: no developer toolbar. One small motion icon and a quiet scroll arrow sit in the footer row; the price link is the text link in chapter 5. */
.story-controls{gap:2px;align-items:center}
.story-controls a,.story-controls button,#narrative:not(.narrative-live) .story-controls a,#narrative:not(.narrative-live) .story-controls button{min-width:44px;min-height:44px;padding:0;justify-content:center;border:0;border-radius:50%;background:transparent;color:#68715f;font:400 16px/1 Inter,sans-serif}
.story-controls svg{fill:currentColor}
.story-controls button[aria-pressed='true']{opacity:.55}
.story-controls a:hover,.story-controls button:hover,.story-controls a:focus-visible,.story-controls button:focus-visible{color:#a13c20}
.narrative-live .story-controls{left:auto;right:calc(4.6% - 12px);top:calc(var(--story-top,0px) + var(--story-h) - 58px);bottom:auto;justify-content:flex-end}
.narrative-live .narrative-foot span:last-child{visibility:hidden}
#narrative:not(.narrative-live) .story-controls{justify-content:flex-end;padding:0 max(8px,calc(4.6% - 12px));gap:2px}
@media(max-width:760px){
 .narrative-live .story-controls{right:12px;top:calc(var(--story-top,0px) + var(--story-h) - 54px)}
 #narrative:not(.narrative-live) .story-controls{padding:0 8px}
 .narrative-live .narrative-foot span:first-child{max-width:calc(100% - 96px);font-size:11px;line-height:1.3}
}

/* S5B: scroll only triggers a chapter. The copy and the controls ride a native sticky layer (same box as the stage), so no position is computed from scrollY; every change of state plays in time. */
.narrative-layer{display:none}
#narrative.narrative-live .narrative-layer{display:block;position:sticky;top:var(--story-header);height:var(--story-h);margin-bottom:calc(-1 * var(--story-h));pointer-events:none;transform:translateY(calc(var(--story-shift,0px) * -1))}
.narrative-live .narrative-layer .story-controls{pointer-events:none}
.narrative-live .narrative-layer .story-controls a,.narrative-live .narrative-layer .story-controls button{pointer-events:auto}
.narrative-live .narrative-board,.narrative-live .narrative-backlog{transition:opacity .5s ease}
.narrative-live .narrative-board b{display:none}
.narrative-live .narrative-board b.is-on{display:block;animation:narrative-in .7s cubic-bezier(.45,0,.2,1) both}
@keyframes narrative-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.narrative-live .narrative-viewport{transition:top .8s cubic-bezier(.45,0,.2,1),bottom .8s cubic-bezier(.45,0,.2,1),left .8s cubic-bezier(.45,0,.2,1),right .8s cubic-bezier(.45,0,.2,1)}
.narrative-live.narrative-entering .narrative-viewport{transition:none}
@media(prefers-reduced-motion:reduce){
 .narrative-layer{display:none!important}
 .narrative-live .narrative-copy,.narrative-live .narrative-copy.is-current,.narrative-live .narrative-viewport{transition:none}
 #narrative .narrative-still{animation:narrative-fade .8s ease both}
 @keyframes narrative-fade{from{opacity:0}to{opacity:1}}
}


/* P3: one progress indicator (a thin five-part track at the top of the stage), one scene per chapter, the chapter-5 caption is the only label on the scene. */
.narrative-live .narrative-rule,.narrative-rule{top:22px;padding:0;border:0;height:3px;display:block}
.narrative-night{display:none}
.narrative-live[data-chapter='5'] .narrative-night{display:block;position:absolute;left:4.6%;bottom:86px;z-index:2;opacity:calc(var(--story-clock,0) * (1 - var(--story-out,0)));pointer-events:none}
.narrative-night p{margin:0;font-weight:500;font-size:14px;line-height:1.35;color:#26382d;max-width:240px}
@media(max-width:760px){.narrative-rule,.narrative-live .narrative-rule{top:14px}.narrative-live[data-chapter='5'] .narrative-night{left:24px;right:24px;bottom:auto;top:calc(var(--story-scene-top,330px) - 6px)}.narrative-night p{max-width:none;font-size:12px;line-height:1.25}}
/* Pass 2: on desktop the chapter-1 counter sits in the text column under the copy, never over the building. */
@media(min-width:761px){.narrative-live .narrative-backlog{left:4.6%!important;top:var(--story-backlog-top,330px)!important}}

/* E2B: the canvas dives from the city while the page scrolls (narrative.js keeps it fixed under the hero text, above the story section's paper); the stage and its text sit over it. */
#narrative.narrative-live .narrative-stage,#narrative.narrative-live .narrative-layer{z-index:2}
#experience.narrative-away .city-signal,#experience.narrative-away #ai-label,#experience.narrative-away #scene-counter{opacity:0!important;visibility:hidden!important;transition:opacity .25s ease,visibility 0s .25s}

/* G1: static story = one idea per screen. Each chapter fills the viewport, a large still beside (or under) the copy, the copy fading in once in time. */
@media(min-width:761px){
 #narrative:not(.narrative-live) .narrative-step{min-height:100svh;box-sizing:border-box;display:flex;align-items:center;padding:calc(var(--story-header) + 24px) clamp(24px,4.6vw,88px) 40px;scroll-margin-top:0}
 #narrative:not(.narrative-live) .narrative-copy{width:100%;max-width:1360px;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:0 clamp(32px,4vw,72px)}
 #narrative:not(.narrative-live) .narrative-still{width:100%;height:auto;max-height:calc(100svh - var(--story-header) - 72px);aspect-ratio:1000/800;object-fit:contain;border-radius:6px}
 #narrative:not(.narrative-live) #abonament .narrative-still{aspect-ratio:907/545}
}
@media(max-width:760px){
 #narrative:not(.narrative-live) .narrative-step{min-height:100svh;box-sizing:border-box;display:flex;align-items:center;padding:calc(var(--story-header) + 12px) 24px 32px}
 #narrative:not(.narrative-live) .narrative-copy{width:100%}
 #narrative:not(.narrative-live) .narrative-still{max-height:42svh}
}
#narrative.story-reveal:not(.narrative-live) .narrative-copy>*{opacity:0;transform:translateY(22px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
#narrative.story-reveal:not(.narrative-live) .narrative-copy>.narrative-still{transform:translateX(26px) scale(.985);transition-duration:1.1s}
#narrative.story-reveal:not(.narrative-live) .narrative-step.seen .narrative-copy>*{opacity:1;transform:none}
#narrative.story-reveal:not(.narrative-live) .narrative-step.seen .narrative-copy>*:nth-child(2){transition-delay:.12s}
#narrative.story-reveal:not(.narrative-live) .narrative-step.seen .narrative-copy>*:nth-child(3){transition-delay:.24s}
#narrative.story-reveal:not(.narrative-live) .narrative-step.seen .narrative-copy>*:nth-child(n+4){transition-delay:.36s}
@media(prefers-reduced-motion:reduce){#narrative.story-reveal .narrative-copy>*{opacity:1!important;transform:none!important;transition:none!important}}

/* G1 swap hook: an illustrated chapter replaces the 3D scene in the same box (the layer only exists when #narrative[data-art] lists chapters). */
/* A1: the canvas is exactly the picture's shape (the shader's early return for pixels outside the picture would give those pixels a wrong mip level and draw a hairline at the picture's edge), centred in the stage right of the text, at most 65% of the width. */
/* A2: every chapter is its own picture with its own proportion. The canvases (a pool of two that cross-fade) are placed by narrative.js to the picture's exact shape, contain, in the free area right of the text; the soft edge mask fades them into the page colour. */
.narrative-arts{position:absolute;inset:0;pointer-events:none;opacity:calc(1 - var(--story-out,0));transform:translateY(calc(var(--story-out,0) * -18px))}
.narrative-art{display:block;position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:0 0;opacity:0;transition:opacity .32s ease; /* CO-CEO 00:45: a step change never shows two pictures for long (was .6 s) */
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%),linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%),linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-composite:intersect}
.narrative-art.on{opacity:1}
.narrative-lite .narrative-backlog,.narrative-lite .narrative-board{display:none}
/* 3D and illustration trade places through the page colour: the one going out is mostly gone when the other starts (about half the picture stays covered at the crossing: no empty frame, no clear double exposure). */
.narrative-live .narrative-viewport{transition:top .8s cubic-bezier(.45,0,.2,1),bottom .8s cubic-bezier(.45,0,.2,1),left .8s cubic-bezier(.45,0,.2,1),right .8s cubic-bezier(.45,0,.2,1),opacity .35s ease .1s}
.narrative-live.narrative-art-on .narrative-viewport{opacity:0;transition:opacity .28s ease}
.narrative-live.narrative-entering .narrative-viewport{transition:none}
@media(prefers-reduced-motion:reduce){.narrative-art,.narrative-art.on,.narrative-live .narrative-viewport,.narrative-live.narrative-art-on .narrative-viewport{transition:none}}
/* A1: the illustrated stills sit whole in their frame (the picture ground is the page colour); chapter 3's static still is a Z AI layer revealed by a circle from the AI's light over the Bez AI frame. */
img.narrative-still.story-art-still{object-fit:contain}
#narrative:not(.story-reveal) .narrative-still-bez{display:none}
#narrative.story-reveal .narrative-still-z{clip-path:circle(0 at var(--ox,42%) var(--oy,54%))}
#narrative.story-reveal .narrative-step.seen .narrative-still-z{animation:story-z 2.6s cubic-bezier(.5,0,.2,1) 1.3s both}
@keyframes story-z{from{clip-path:circle(0 at var(--ox,42%) var(--oy,54%))}to{clip-path:circle(150% at var(--ox,42%) var(--oy,54%))}}


/* G2: chapter 4 is ONE screen: a four-step timeline plays in time under one big picture; every chapter's art is at least ~60% of the window. */
.story-timeline{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(16px,2.2vw,36px)}
.story-timeline li{position:relative;border-top:2px solid var(--line);padding-top:16px;opacity:.5;transition:opacity .5s ease}
.story-timeline li.is-done{opacity:.78}.story-timeline li.is-on{opacity:1}
.story-timeline li:after{content:'';position:absolute;left:0;right:0;top:-2px;height:2px;background:#c15b36;transform-origin:left;transform:scaleX(0)}
.story-timeline li.is-on:after,.story-timeline li.is-done:after{transform:scaleX(1)}
.story-timeline.playing li.is-on:after{animation:story-fill 3.6s linear both}
@keyframes story-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.story-timeline button{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.story-timeline button:focus-visible{outline:2px solid #a13c20;outline-offset:6px}
.story-num{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #b7bbaa;font:12px/1 ui-monospace,monospace;color:#68715f;transition:background .4s,color .4s,border-color .4s}
.story-timeline li.is-on .story-num{background:#c15b36;border-color:#c15b36;color:#fff}
.story-timeline b{font:400 clamp(17px,1.5vw,22px)/1.2 "Space Grotesk",sans-serif;letter-spacing:-.03em;color:#26382d}
.story-line{grid-column:1 / -1;font-size:14px;line-height:1.5;color:#4b564b}
.story-art4{position:relative}
.story-art4 img.narrative-still{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;aspect-ratio:auto;object-fit:contain;opacity:0;transition:opacity .9s ease}
.story-art4 img.narrative-still.is-on{opacity:1}
.narrative-static-board li{opacity:.4;transition:opacity .5s}.narrative-static-board li.is-on{opacity:1}

/* Live: the heading sits left, the timeline runs along the bottom of the stage on a paper plate, the scene keeps the rest. */
.narrative-live .story-art4{display:none}
#narrative.narrative-live .narrative-copy.story-jak{right:4.6%;width:auto;top:130px;bottom:74px;pointer-events:none}
#narrative.narrative-live .story-jak .story-head{width:31%}
#narrative.narrative-live .story-timeline{position:absolute;left:-4.6vw;right:-4.6vw;bottom:-74px;padding:22px 4.6vw 80px;box-sizing:border-box;pointer-events:none;background:linear-gradient(180deg,#fbf7f000 0,#fbf7f0f0 22%,#fbf7f0 100%)}
#narrative.narrative-live .story-timeline li{pointer-events:auto}
@media(min-width:761px){#narrative.narrative-live[data-chapter='4'] .narrative-viewport{top:30px;bottom:200px}}

/* Static, desktop: one screen per chapter; the picture takes ~64% of the window and bleeds to the right edge, the text is centred in the left part. */
@media(min-width:761px){
 #narrative:not(.narrative-live){--pad:clamp(24px,4.6vw,88px);--iw:min(64vw,calc((100svh - var(--story-header) - 72px) * 1.25))}
 #narrative:not(.narrative-live) #abonament{--ih:calc(var(--iw) * .6)}
 #narrative:not(.narrative-live) .narrative-step:not(#jak){--ih:calc(var(--iw) * .8)}
 #narrative:not(.narrative-live) #abonament.narrative-step{--ih:calc(var(--iw) * .6)}
 #narrative:not(.narrative-live) .narrative-step:not(#jak) .narrative-copy{max-width:none;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:var(--ih)}
 #narrative:not(.narrative-live) .narrative-step:not(#jak) .narrative-copy>:not(img):not(.narrative-night-stills){max-width:calc(100vw - var(--iw) - var(--pad) - 56px)}
 #narrative:not(.narrative-live) .narrative-step:not(#jak) .narrative-copy>.narrative-still{position:absolute;right:calc(-1 * var(--pad));top:0;bottom:0;margin:auto 0;width:var(--iw);height:var(--ih);max-height:none;aspect-ratio:auto;border-radius:0}
 #narrative:not(.narrative-live) .narrative-copy h2{font-size:clamp(34px,3.4vw,52px);margin:18px 0 14px}
 #narrative:not(.narrative-live) .narrative-copy p{font-size:15px;line-height:1.6;color:#4b564b;margin:8px 0}
 #narrative:not(.narrative-live) .narrative-areas{margin:14px 0;gap:10px}
 #narrative:not(.narrative-live) .narrative-areas b,#narrative:not(.narrative-live) .narrative-areas span{font-size:13px;color:#4b564b}
 #narrative:not(.narrative-live) .narrative-areas b{color:#26382d}
 #narrative:not(.narrative-live) .narrative-decision{font-size:12px!important;color:var(--muted);padding-top:12px;margin-top:6px}
 /* chapter 4 */
 #narrative:not(.narrative-live) #jak .narrative-copy{grid-template-columns:minmax(0,3.2fr) minmax(0,8.8fr);grid-template-rows:auto auto;gap:24px clamp(24px,3vw,48px);align-content:center}
 #narrative:not(.narrative-live) #jak .story-head{grid-column:1;grid-row:1;align-self:center}
 #narrative:not(.narrative-live) #jak .story-art4{grid-column:2;grid-row:1;width:calc(100% + var(--pad));margin-right:calc(-1 * var(--pad));aspect-ratio:1500/840;align-self:center}
 #narrative:not(.narrative-live) #jak .story-timeline{grid-column:1 / -1;grid-row:2}
 #narrative:not(.narrative-live) #jak .narrative-static-board{margin:14px 0 0;padding:12px 16px;font-size:13px;line-height:1.7}
 /* chapter 5: the two captured night frames cross-fade in the big frame (side by side only for reduced motion) */
 #narrative:not(.narrative-live) .narrative-night-stills{display:block;position:absolute;right:calc(-1 * var(--pad));top:0;bottom:0;margin:auto 0;width:var(--iw);height:var(--ih)}
 #narrative:not(.narrative-live) .narrative-night-stills img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:story-night 9s ease-in-out infinite}
 #narrative:not(.narrative-live) .narrative-night-stills img:nth-child(2){animation-delay:4.5s}
 #narrative:not(.narrative-live) .narrative-night-stills figcaption{position:absolute;left:24px;bottom:18px;z-index:2;grid-column:auto;background:#fbf7f0d9;padding:8px 12px;border-radius:3px}
}
@keyframes story-night{0%,8%{opacity:0}18%,45%{opacity:1}55%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){
 #narrative .story-art4 img.narrative-still{transition:none}
 #narrative .story-art4{aspect-ratio:1500/840}
 #narrative:not(.narrative-live) .narrative-night-stills{display:grid;grid-template-columns:1fr 1fr;gap:10px;height:auto;align-content:center}
 #narrative:not(.narrative-live) .narrative-night-stills img{position:static;opacity:1;animation:none;height:auto;aspect-ratio:1500/900}
 #narrative:not(.narrative-live) .narrative-night-stills figcaption{position:static;grid-column:1 / -1}
}
/* Static, phone: the picture under the text; the timeline is a vertical list. */
@media(max-width:760px){
 .story-timeline{grid-template-columns:1fr;gap:0}
 .story-timeline li{padding:12px 0 12px}
 .story-art4{aspect-ratio:1500/840;margin:12px 0}
 #narrative:not(.narrative-live) .narrative-copy{display:block}
 #narrative:not(.narrative-live) .narrative-night-stills{display:block;position:relative;aspect-ratio:1500/900}
 #narrative:not(.narrative-live) .narrative-night-stills img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:story-night 9s ease-in-out infinite}
 #narrative:not(.narrative-live) .narrative-night-stills img:nth-child(2){animation-delay:4.5s}
 /* Live phone: only the open step is spelled out, the other three are numbers on the rail. */
 #narrative.narrative-live .narrative-copy.story-jak{top:calc(var(--story-top,0px) + 76px);bottom:62px}
 #narrative.narrative-live .story-jak .story-head{width:100%}
 #narrative.narrative-live .story-timeline{grid-template-columns:repeat(4,auto);justify-content:start;left:-20px;right:-20px;bottom:-62px;padding:16px 20px 66px;gap:0 8px}
 #narrative.narrative-live .story-timeline li{opacity:.7}#narrative.narrative-live .story-timeline li.is-on{opacity:1;grid-column:1 / -1;grid-row:2}
 #narrative.narrative-live .story-timeline li:not(.is-on) b,#narrative.narrative-live .story-timeline li:not(.is-on) .story-line{display:none}
 #narrative.narrative-live .story-timeline li:not(.is-on){grid-row:1;border-top:0;padding:0 0 8px}
 #narrative.narrative-live .story-timeline li:not(.is-on):after{display:none}
 #narrative.narrative-live[data-chapter='4'] .narrative-viewport{bottom:200px}
}
/* Live heights: the whole of chapter 4 is one screen of scroll (the timeline plays in time), the others unchanged. */
#narrative.narrative-live .narrative-week{min-height:100svh}
#narrative:not(.narrative-live) .story-art4 img.narrative-still{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;margin:0;grid-row:auto;grid-column:auto;border-radius:0;object-fit:contain}
/* The chapter-5 frame is cut by the scene's own edge: let it dissolve into the paper. */
#narrative:not(.narrative-live) #abonament .narrative-still,#narrative:not(.narrative-live) #abonament .narrative-night-stills{-webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%),linear-gradient(90deg,transparent 0,#000 8%);-webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,#000 82%,transparent 100%),linear-gradient(90deg,transparent 0,#000 8%);mask-composite:intersect}
#narrative:not(.narrative-live) .narrative-step .narrative-still,#narrative:not(.narrative-live) .story-art4{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%);mask-image:linear-gradient(90deg,transparent 0,#000 7%)}
#narrative:not(.narrative-live) #abonament .narrative-still{-webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%),linear-gradient(90deg,transparent 0,#000 8%)}
.story-timeline li{opacity:.6}

/* G3: the story's building is never cut by an edge: the stage fades in time as the next section rises, chapter 4 keeps the plate clear of the ground floor, and the right edge dissolves like the top and bottom. */
.narrative-live .narrative-viewport{opacity:calc(1 - var(--story-out,0))}
@media(min-width:761px){
 #narrative.narrative-live .narrative-viewport,#narrative.narrative-live[data-chapter] .narrative-viewport{
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 8%,#000 92%,transparent 100%),linear-gradient(90deg,#000 0,#000 94%,transparent 100%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(180deg,transparent 0,#000 8%,#000 92%,transparent 100%),linear-gradient(90deg,#000 0,#000 94%,transparent 100%);mask-composite:intersect}
 #narrative.narrative-live[data-chapter='4'] .narrative-viewport{bottom:230px}
}

/* A2: static desktop: every whole picture, then the screen's bottom bar (45px) and, in chapter 4, the four-step timeline below it, fit inside one screen (no cut-off ground, no clipped steps). */
@media(min-width:761px){
 #narrative:not(.narrative-live){--iw:min(64vw,calc((100svh - var(--story-header) - 130px) * 1.25))}
 #narrative:not(.narrative-live) #jak .story-art4{width:min(calc(100% + var(--pad)),calc((100svh - var(--story-header) - 340px) * 1.7857));justify-self:end}
}
#narrative:not(.narrative-live) .narrative-step{scroll-margin-top:calc(-1 * var(--story-header))}

/* H2: one palette. The story rooms are painted brighter and more saturated than the hero city (mean saturation .47 against .30); a light desaturation brings both to the same family without touching the page-coloured ground (cream stays cream within 2/255). The same filter is on the static stills. */
.narrative-arts,.story-art-still{filter:saturate(.8)}
/* H2: small loops over the picture, positions are points 0..1 of the picture (LOOPS in narrative.js); the box follows the front canvas and its camera. */
.narrative-fx{display:none;position:absolute;pointer-events:none;opacity:0;transition:opacity .6s ease;transform-origin:50% 50%;overflow:visible}
.narrative-live .narrative-fx{display:block}.narrative-fx.on{opacity:1}
.fx{position:absolute;display:block;width:0;height:0}
.fx-wave b{position:absolute;left:-2.6em;top:-2.6em;width:5.2em;height:5.2em;border:.3em solid #fff;box-shadow:0 0 .5em rgba(226,85,42,.7),inset 0 0 .4em rgba(226,85,42,.5);border-radius:50%;opacity:0;transform:scale(.25);animation:fx-wave 2.4s cubic-bezier(.2,.6,.3,1) infinite}
.fx-wave b:nth-child(2){animation-delay:.8s}.fx-wave b:nth-child(3){animation-delay:1.6s}
@keyframes fx-wave{0%{opacity:.8;transform:scale(.25)}70%{opacity:.15}100%{opacity:0;transform:scale(1.25)}}
.fx-steam b{position:absolute;left:-.9em;top:-1.2em;width:1.8em;height:3.6em;filter:blur(.12em);border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,1),rgba(255,255,255,0));opacity:0;animation:fx-steam 3.2s ease-in infinite}
.fx-steam b:nth-child(2){animation-delay:1.05s;left:.1em}.fx-steam b:nth-child(3){animation-delay:2.1s;left:-.9em}
@keyframes fx-steam{0%{opacity:0;transform:translateY(.6em) scale(.7,.6)}25%{opacity:.95}100%{opacity:0;transform:translateY(-3.6em) scale(1.4,1.2)}}
.fx-screen b{position:absolute;left:-3.6em;top:-2.4em;width:7.2em;height:4.6em;background:rgba(255,255,255,.7);animation:fx-screen 2.8s ease-in-out infinite}
.fx-screen u{position:absolute;left:-2.4em;top:.9em;width:.28em;height:.95em;background:#1f2a22;animation:fx-caret 1.1s steps(1) infinite}
@keyframes@keyframes fx-screen{0%,100%{opacity:.05}50%{opacity:.6}}
@keyframes fx-caret{0%,55%{opacity:1}56%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.narrative-fx{display:none!important}}

/* H2: type. One strong sentence per screen (the chapter headline), everything else quieter. Live story only; the static page keeps its own sizes. */
.narrative-live .narrative-copy{width:36%}
.narrative-live .narrative-copy h2{font-size:clamp(44px,4.3vw,72px);line-height:1;letter-spacing:-.06em;color:#0f1711;margin:18px 0 22px}
.narrative-live .narrative-copy .eyebrow{font-size:11px;opacity:.7}
.narrative-live .narrative-copy p,.narrative-live .narrative-areas span{font-size:15px;line-height:1.55;color:#6a7568}
.narrative-live .narrative-copy p{max-width:26em}
.narrative-live .narrative-areas{gap:10px;margin:18px 0}.narrative-live .narrative-areas b{font-size:13px;color:#4b564b}
.narrative-live .narrative-decision{font-size:12px!important;color:#7d8779!important;max-width:24em}
@media(max-width:760px){.narrative-live .narrative-copy{width:100%}.narrative-live .narrative-copy h2{font-size:34px}}

/* L1: rhythm. Chapter 2 is a wide, centred cut-away with three floor labels; chapter 5 mirrors the layout (picture left, text right). Desktop only; phones keep the stacked layout. */
.story-map{display:block}
@media(min-width:761px){
 /* live */
 #narrative.narrative-live.narrative-lite .narrative-copy.story-wide{left:0;right:0;top:0;bottom:0;width:auto;max-width:none;text-align:center}
 #narrative.narrative-live.narrative-lite .story-wide .eyebrow{margin-top:32px}
 #narrative.narrative-live.narrative-lite .story-wide h2{margin:8px 0 0;font-size:clamp(40px,3.9vw,64px);white-space:nowrap;max-width:none;width:100%}
 #narrative.narrative-live.narrative-lite .story-wide h2 br{display:none}
 #narrative.narrative-live.narrative-lite .story-wide .story-map{position:absolute;left:var(--map-l,0);top:var(--map-t,130px);width:var(--map-w,700px);height:var(--map-h,560px)}
 #narrative.narrative-live.narrative-lite .story-wide .narrative-decision{position:absolute;left:480px;bottom:22px;margin:0;padding:0;border:0;max-width:none;width:max-content;text-align:left}
 #narrative.narrative-live.narrative-lite[data-chapter='2'] .narrative-stage::after,#narrative.narrative-live.narrative-lite[data-chapter='5'] .narrative-stage::after{display:none}
 #narrative.narrative-live.narrative-lite .narrative-copy.story-flip{left:65%;width:30%}
 #narrative.narrative-live.narrative-lite[data-chapter='5'] .narrative-night{left:65%}
 /* floor labels: the li is the leader line (from the floor out to the label), the label hangs on its far end */
 .story-wide .narrative-areas{position:absolute;inset:0;margin:0;padding:0;gap:0;display:block;text-align:left}
 .story-wide .narrative-areas li{position:absolute;top:calc(var(--y) * 1%);height:0;border:0;padding:0}
 .story-wide .narrative-areas li.area-r{left:calc(var(--x) * 1%);width:calc((var(--end) - var(--x)) * 1%)}
 .story-wide .narrative-areas li.area-l{left:calc(var(--end) * 1%);width:calc((var(--x) - var(--end)) * 1%)}
 .story-wide .narrative-areas li:before{content:'';position:absolute;top:-6px;width:12px;height:12px;border-radius:50%;background:#e2552a;box-shadow:0 0 0 4px #fbf7f0b0;z-index:1}
 .story-wide .narrative-areas li:nth-child(2):before{background:#4d7b56}.story-wide .narrative-areas li:nth-child(3):before{background:#303b32}
 .story-wide .narrative-areas li.area-r:before{left:-6px}.story-wide .narrative-areas li.area-l:before{right:-6px}
 .story-wide .narrative-areas li:after{content:'';position:absolute;top:-1px;left:0;right:0;height:2px;background:#26382d;transition:transform .7s cubic-bezier(.45,0,.2,1)}
 .story-wide .narrative-areas li.area-r:after{transform-origin:left}.story-wide .narrative-areas li.area-l:after{transform-origin:right}
 .story-wide .narrative-areas li b,.story-wide .narrative-areas li span{position:absolute;width:260px;box-sizing:border-box;background:#fbf7f0f0;padding-left:12px;border-left:3px solid #e2552a}
 .story-wide .narrative-areas li:nth-child(2) b,.story-wide .narrative-areas li:nth-child(2) span{border-color:#4d7b56}
 .story-wide .narrative-areas li:nth-child(3) b,.story-wide .narrative-areas li:nth-child(3) span{border-color:#303b32}
 .story-wide .narrative-areas li.area-r b,.story-wide .narrative-areas li.area-r span{left:calc(100% + 4px)}
 .story-wide .narrative-areas li.area-l b,.story-wide .narrative-areas li.area-l span{right:calc(100% + 4px)}
 #narrative .story-wide .narrative-areas li b{top:-34px;font-size:20px;line-height:1.2;padding-top:4px;padding-right:8px}
 #narrative .story-wide .narrative-areas li span{top:-9px;font-size:16px;line-height:1.35;padding-bottom:4px;padding-top:2px;padding-right:8px}
 .story-wide .narrative-areas li.area-l b,.story-wide .narrative-areas li.area-l span{text-align:left}
 /* the leaders draw in time: live when the chapter is current, static when the screen is seen */
 .narrative-live .story-wide:not(.is-current) .narrative-areas li:after{transform:scaleX(0);transition:none}
 .narrative-live .story-wide.is-current .narrative-areas li:after{transition-delay:.7s}
 .narrative-live .story-wide.is-current .narrative-areas li:nth-child(2):after{transition-delay:1s}.narrative-live .story-wide.is-current .narrative-areas li:nth-child(3):after{transition-delay:1.3s}
 .narrative-live .story-wide .narrative-areas li b,.narrative-live .story-wide .narrative-areas li span,.narrative-live .story-wide .narrative-areas li:before{opacity:0;transition:opacity .5s ease}
 .narrative-live .story-wide.is-current .narrative-areas li b,.narrative-live .story-wide.is-current .narrative-areas li span,.narrative-live .story-wide.is-current .narrative-areas li:before{opacity:1;transition-delay:.9s}
 .narrative-live .story-wide.is-current .narrative-areas li:nth-child(2) :is(b,span),.narrative-live .story-wide.is-current .narrative-areas li:nth-child(2):before{transition-delay:1.2s}
 .narrative-live .story-wide.is-current .narrative-areas li:nth-child(3) :is(b,span),.narrative-live .story-wide.is-current .narrative-areas li:nth-child(3):before{transition-delay:1.5s}
 /* static */
 #narrative:not(.narrative-live) #co-robimy.narrative-step .narrative-copy.story-wide{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:0;max-width:none;width:100%}
 #narrative:not(.narrative-live) #co-robimy.narrative-step .story-wide>*:not(#a):not(#b){max-width:none}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas{z-index:2}
 #narrative:not(.narrative-live) #co-robimy .story-wide h2{margin:10px 0 4px;white-space:nowrap;max-width:none;width:100%}
 #narrative:not(.narrative-live) #co-robimy .story-wide h2 br{display:none}
 #narrative:not(.narrative-live) #co-robimy .story-wide .story-map{position:relative;width:min(100%,calc((100svh - var(--story-header) - 295px) * 1.25));aspect-ratio:2200/1760;margin:0 auto}
 #narrative:not(.narrative-live) #co-robimy .story-wide .story-map img.narrative-still{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;aspect-ratio:auto;grid-column:auto;grid-row:auto;border-radius:0;-webkit-mask-image:none;mask-image:none}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-decision{border:0;padding:0;margin:4px 0 0;max-width:none}
 #narrative.story-reveal:not(.narrative-live) #co-robimy:not(.seen) .narrative-areas li:after{transform:scaleX(0)}
 #narrative:not(.narrative-live) #co-robimy.seen .narrative-areas li:nth-child(2):after{transition-delay:.3s}#narrative:not(.narrative-live) #co-robimy.seen .narrative-areas li:nth-child(3):after{transition-delay:.6s}
 #narrative.story-reveal:not(.narrative-live) #co-robimy:not(.seen) .narrative-areas li :is(b,span),#narrative.story-reveal:not(.narrative-live) #co-robimy:not(.seen) .narrative-areas li:before{opacity:0}
 #narrative:not(.narrative-live) #co-robimy .narrative-areas li :is(b,span),#narrative:not(.narrative-live) #co-robimy .narrative-areas li:before{transition:opacity .6s ease .6s}
 /* chapter 5 static: picture on the left edge, text on the right */
 #narrative:not(.narrative-live) #abonament .narrative-copy.story-flip{padding-left:calc(var(--iw) - var(--pad) + 40px)}
 #narrative:not(.narrative-live) #abonament .narrative-copy.story-flip>.narrative-still,#narrative:not(.narrative-live) #abonament .narrative-copy.story-flip>.narrative-night-stills{right:auto;left:calc(-1 * var(--pad))}
 #narrative:not(.narrative-live) #abonament .narrative-still,#narrative:not(.narrative-live) #abonament .narrative-night-stills{-webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%),linear-gradient(270deg,transparent 0,#000 8%);mask-image:linear-gradient(180deg,#000 82%,transparent 100%),linear-gradient(270deg,transparent 0,#000 8%);-webkit-mask-composite:source-in;mask-composite:intersect}
 #narrative.story-reveal:not(.narrative-live) .narrative-copy.story-flip>.narrative-still{transform:translateX(-26px) scale(.985)}
 #narrative.story-reveal:not(.narrative-live) .narrative-step.seen .narrative-copy.story-flip>.narrative-still{transform:none}
}
/* phone: the labels are the plain list, the picture stays under the text */
@media(max-width:760px){.story-map{display:flex;flex-direction:column}}
/* The illustration layer (A1/A2) fades out with the stage as the AI Co-CEO section rises, like the 3D viewport did (G3). */
.narrative-live .narrative-art.on,.narrative-live .narrative-arts{opacity:calc(1 - var(--story-out,0))!important}
/* The night caption belongs to the 3D night scene; the illustrated story has no night, so the caption (clipped under chapter 5) is gone there. */
#narrative.narrative-art-on .narrative-night{display:none!important}
.narrative-track i:after{transition:transform .6s cubic-bezier(.4,0,.2,1)}
/* CO-CEO 02:55: the copy scrim (left 46% of the stage) belongs to chapters with their text on the left; a wide or mirrored chapter has its picture there, so the scrim washed it out. */
#narrative.narrative-live:has(.narrative-copy.is-current:is(.story-wide,.story-flip)) .narrative-stage::after{opacity:0}
#narrative.narrative-live .narrative-stage::after{transition:opacity .3s ease}
/* The last chapter carries the subscription line and the way to pricing (finale folded in): centred under the building, readable, never wider than the screen. */
#narrative.narrative-live.narrative-lite .story-wide .narrative-decision{left:0!important;right:0;transform:none!important;margin:0 auto!important;width:min(860px,calc(100vw - 160px))!important;bottom:58px!important;text-align:center;font-size:15px!important;line-height:1.55;color:#4d554b!important}
#narrative.narrative-live .story-wide .narrative-decision .story-offer-link{display:inline;margin-left:6px;font-weight:600;color:#a13c20;text-decoration:underline;text-underline-offset:4px}

/* Stan 28.10: the first story picture fades in on entry instead of popping (the canvas goes from display:none to shown in the same frame, which skips the transition) */
@starting-style{.narrative-live .narrative-art.on{opacity:0!important}}

/* Stan 28.10 ("smooth, in one direction or the other"): the chapter copy cross-fades instead of blinking out (it left ~0.4 s with no text at every change)
   and slides with the wheel: going down the old copy rises away and the new one comes up from below; going up, the reverse. */
.narrative-live .narrative-copy{transition:opacity .16s ease,transform .45s cubic-bezier(.2,.7,.2,1)!important;transform:translateY(-14px)}
.narrative-live .narrative-copy.is-after{transform:translateY(14px)}
.narrative-live .narrative-copy.is-current{transition:opacity .38s ease .14s,transform .6s cubic-bezier(.2,.7,.2,1) .1s!important;transform:none}
@media(prefers-reduced-motion:reduce){.narrative-live .narrative-copy,.narrative-live .narrative-copy.is-current{transform:none!important;transition:none!important}}
