.story-panel { grid-area: 1/1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; width: 100%; height: 100%; padding: 2rem; min-height: 0; overflow: hidden; color: var(--term-text); background: var(--term-2); }
.story-panel[hidden] { display: none; }
.story-panel h2 { margin: 0; font-size: clamp(1.25rem,3vw,2rem); line-height: 1.2; text-wrap: balance; }
.story-panel p { margin: 0; max-width: 38rem; font-size: var(--fs-fine); line-height: 1.6; }
.story-source { margin: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font: var(--fs-fine)/1.8 var(--font-mono); }
.story-handoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; width: min(100%,32rem); }
.story-files { display: grid; gap: .5rem; font: var(--fs-micro)/1.5 var(--font-mono); }
.story-files span { padding: .5rem; border: 1px solid var(--term-line); border-radius: var(--r-control); background: var(--term); }
.story-handoff svg { width: 4rem; height: 4rem; color: var(--term-ok); }
.story-destination { display: grid; justify-items: center; gap: .5rem; font-size: var(--fs-fine); }
.story-send { rotate: 90deg; animation: story-send 1.6s ease-in-out infinite; }
.story-parcel { padding: .5rem; border: 2px solid var(--term-ok); animation: story-deliver 2.4s ease-in-out infinite; }
.story-desk { padding: 0; position: relative; }
.preview-planes .story-desk img { width: 100%; height: 100%; object-fit: cover; }
.story-desk > span { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; padding: .5rem .75rem; background: var(--term); color: var(--term-text); font-size: var(--fs-micro); }
.story-phase { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-fine); }
.product-preview[data-paused="true"] .story-send, .product-preview[data-paused="true"] .story-parcel { animation-play-state: paused; }
@keyframes story-send { 0%,100% { translate: -.5rem; opacity: .5; } 50% { translate: .5rem; opacity: 1; } }
@keyframes story-deliver { 0%,100% { translate: -.75rem; } 50% { translate: .75rem; } }
@media (max-width: 760px) { .story-panel { padding: 1rem; gap: 1rem; } .story-handoff { gap: .75rem; } .story-handoff svg { width: 2.5rem; height: 2.5rem; } .story-source { font-size: .7rem; } .story-desk { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .story-send, .story-parcel { animation: none; } }
/* Reserve reading space as phone text grows relative to the viewport. */
@media (max-width: 760px) { .preview-planes { height: max(28rem,calc(48rem - 100vw)); } .story-handoff { display: flex; flex-wrap: wrap; justify-content: center; } .story-files { flex: 1; min-width: 8rem; } .story-destination { flex: 1; } }

.preview-planes { position: relative; }
.story-arrow { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 44px; height: 44px; padding: .5rem; border: 1px solid var(--term-line); border-radius: var(--r-control); background: var(--term); color: var(--term-text); opacity: 0; pointer-events: none; cursor: pointer; }
.story-back { left: .5rem; } .story-next { right: .5rem; }
.story-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.preview-planes:hover .story-arrow, .preview-planes:focus-within .story-arrow { opacity: 1; pointer-events: auto; }
.product-preview .story-arrow:disabled { opacity: 0; pointer-events: none; cursor: default; color: var(--term-faint); }
.story-arrow:focus-visible { outline: 2px solid var(--term-ok); outline-offset: 2px; }
.story-open { text-align: center; text-decoration: none; }
@media (hover: none) { .story-arrow { opacity: 1; pointer-events: auto; } }

@media (max-width: 760px) { .story-arrow { top: auto; bottom: .5rem; translate: none; } .story-desk > span { bottom: 4rem; } }
@media (forced-colors: active) { .preview-candidate[aria-pressed=true], .preview-bar [aria-pressed=true] { outline: 2px solid Highlight; outline-offset: -2px; } }
