/*
 * Scoped to the five future-story slides. Suggested layout:
 * .future-story-layout > figure.media.future-story-scene + .future-story-copy
 * Place the interactive host inside .future-story-copy. All images/titles stay
 * fixed; only two number tiles and a small invitation accent may animate.
 * For the invitation image wrapper set --story-glow-x and --story-glow-y to the
 * intended local light source. Defaults: 77% / 40%; ring size: 68px.
 */
.future-story .future-story-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:30px;align-items:center;min-height:0}
.future-story .future-story-scene{margin:0;min-width:0;position:relative}
.future-story .future-story-scene img{display:block;width:100%;height:auto;min-height:0;max-height:54vh;aspect-ratio:16/9;object-fit:contain;border-radius:14px}
.future-story .future-story-scene figcaption{font-size:13px;line-height:1.5;color:var(--muted,#60756c);padding-top:8px}
body.motion-running .future-story .media.focus-pulse,.future-story .media.focus-pulse{animation:none!important;outline:none}
.future-story .future-story-copy{display:grid;gap:16px;min-width:0}
.future-story .future-story-copy p{font-size:clamp(23px,1.75vw,28px);line-height:1.5}
.future-story .future-story-copy .lead{font-size:clamp(26px,2.05vw,33px);line-height:1.45}
.future-story .future-story-copy .small{font-size:18px;line-height:1.5}
.future-story .future-story-example{display:grid;gap:10px;align-content:start;padding:15px 17px;background:#f2ecdc;border:1px solid #9aa995;border-radius:14px;min-width:0}
.future-story .future-story-board{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:9px;background:#667773;border-radius:11px;isolation:isolate}
.future-story .future-story-cell{display:flex;align-items:center;justify-content:center;min-width:0;aspect-ratio:1;border-radius:6px;background:#fff3d5;color:#294542;font-size:clamp(24px,2.05vw,33px);font-weight:700;line-height:1}
.future-story .future-story-cell[data-value="4"]{background:#cddab6}
.future-story .future-story-cell.is-empty{background:#d8d0b8;box-shadow:inset 0 2px 3px #344e4a33}
.future-story .future-story-merge .future-story-board{width:100%;max-width:370px;margin:0 auto}
.future-story .future-story-merge-overlay{position:absolute;inset:9px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;pointer-events:none;z-index:2}
.future-story .future-story-merge-overlay .is-empty{visibility:hidden}
.future-story .future-story-blocked{grid-template-columns:minmax(160px,224px) 1fr;column-gap:13px;align-items:center}
.future-story .future-story-blocked .future-story-board{grid-column:1;grid-row:1/5;width:100%;max-width:224px;gap:5px;padding:7px}
.future-story .future-story-blocked .future-story-cell{font-size:clamp(24px,1.65vw,26px);border-radius:4px}
.future-story .future-story-blocked .future-story-direction,.future-story .future-story-blocked .future-story-status,.future-story .future-story-blocked button{grid-column:2}
.future-story .future-story-direction{justify-self:start;padding:5px 13px;font-size:23px;line-height:1.4;background:#e8e4cf;box-shadow:inset 0 0 0 1px #a9b69c;border-radius:7px;color:#3e5a4c}
.future-story .future-story-copy .future-story-status,.future-story .future-story-status{font-size:19px;line-height:1.5;margin:0;min-height:3em;color:#34594b}
.future-story .future-story-example button{justify-self:start;font-size:18px;line-height:1.4;padding:9px 13px;margin:0;max-width:100%}
.future-story [data-story-invitation]{position:relative}
.future-story [data-story-invitation]::after{content:"";position:absolute;left:var(--story-glow-x,77%);top:var(--story-glow-y,40%);width:var(--story-glow-size,68px);height:var(--story-glow-size,68px);margin-left:calc(var(--story-glow-size,68px) / -2);margin-top:calc(var(--story-glow-size,68px) / -2);border:2px solid #f8db95;border-radius:50%;pointer-events:none;opacity:.6;box-shadow:0 0 13px 3px #daba6666;animation:futureStoryInviteA 1800ms ease-in-out 2 both;animation-play-state:paused}
.future-story [data-story-invitation][data-story-replay="1"]::after{animation-name:futureStoryInviteB}
.future-story [data-story-invitation][data-story-motion="running"]::after{animation-play-state:running}
.future-story [data-story-invitation][data-story-motion="static"]::after,body.reduced .future-story [data-story-invitation]::after{animation:none;opacity:.6;box-shadow:0 0 9px 2px #daba6655}
@keyframes futureStoryInviteA{0%,100%{opacity:.55;box-shadow:0 0 9px 2px #daba6655}50%{opacity:.95;box-shadow:0 0 21px 7px #efd38d88}}
@keyframes futureStoryInviteB{0%,100%{opacity:.55;box-shadow:0 0 9px 2px #daba6655}50%{opacity:.95;box-shadow:0 0 21px 7px #efd38d88}}
@media(max-height:760px) and (min-width:901px){
 .future-story .future-story-layout{gap:24px;grid-template-columns:1.25fr 1fr}
 .future-story .future-story-copy{gap:12px}
 .future-story .future-story-copy p{font-size:22px}.future-story .future-story-copy .lead{font-size:27px}.future-story .future-story-copy .small{font-size:17px}
 .future-story .future-story-scene img{max-height:49vh}
 .future-story .future-story-example{padding:12px;gap:8px}
 .future-story .future-story-merge .future-story-board{max-width:290px}
 .future-story .future-story-blocked{grid-template-columns:minmax(145px,180px) 1fr;gap:9px}
 .future-story .future-story-blocked .future-story-board{max-width:180px;gap:4px;padding:6px}
 .future-story .future-story-blocked .future-story-cell{font-size:24px}
 .future-story .future-story-copy .future-story-status,.future-story .future-story-status{font-size:17px;line-height:1.4}
 .future-story .future-story-example button{font-size:16px;padding:7px 10px}.future-story .future-story-direction{font-size:20px;padding:4px 10px}
}
@media(max-width:1100px) and (min-width:901px){.future-story .future-story-layout{grid-template-columns:1.15fr 1fr;gap:20px}.future-story .future-story-blocked{grid-template-columns:minmax(145px,170px) 1fr}}
@media(max-width:900px){
 .future-story .future-story-layout{grid-template-columns:1fr;gap:22px}
 .future-story .future-story-scene img{max-height:48vh}
 .future-story .future-story-example{max-width:560px}
 .future-story .future-story-blocked{grid-template-columns:minmax(155px,224px) 1fr}
}
@media(max-width:430px){.future-story .future-story-blocked{grid-template-columns:1fr}.future-story .future-story-blocked .future-story-board{grid-row:auto;margin:auto}.future-story .future-story-blocked .future-story-direction,.future-story .future-story-blocked .future-story-status,.future-story .future-story-blocked button{grid-column:1}}
@media(prefers-reduced-motion:reduce){.future-story [data-story-invitation]::after{animation:none!important;opacity:.6}}
