/* Story page: two illustration scenes from the archive (Nick, 2026-11-16).
   The Threshold opens the story; the Window in Time heads the Afro Semiotics card and links to the archive. */
.story-scene { margin: 0; position: relative; background: #0d0806; }
.story-scene picture, .story-scene img { display: block; width: 100%; height: auto; }
.story-scene img { aspect-ratio: 1376 / 768; object-fit: cover; }
@media (max-width: 767px) { .story-scene img { aspect-ratio: 896 / 1200; } }
.story-scene figcaption { position: absolute; right: 8px; bottom: 4px; font-size: .5rem; letter-spacing: .02em; color: rgba(245, 242, 238, .4); }

.story-now__scene { display: block; margin: 0 0 var(--space-6, 1.5rem); border-radius: 16px; overflow: hidden; position: relative; }
.story-now__scene img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 600ms var(--ease, ease); }
.story-now__scene:hover img { transform: scale(1.02); }
.story-now__scene:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }
.story-now__scene-cap { position: absolute; right: 8px; bottom: 4px; font-size: .5rem; color: rgba(245, 242, 238, .45); }
.story-now__link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; margin-top: var(--space-4, 1rem); font-weight: 600; color: var(--beige); text-decoration: underline; text-underline-offset: 3px; }
.story-now__link .icon { transition: transform 240ms var(--ease, ease); }
.story-now__link:hover .icon { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .story-now__scene img, .story-now__link .icon { transition: none; } }
/* Phones show the full tall image (window-about-iphone), not a wide crop. */
@media (max-width: 767px) { .story-now__scene img { aspect-ratio: 896 / 1200; } }
/* The opening image sits flush under the nav; the threshold leads into chapter 05. */
.story-scene--window + .story-hero { padding-top: var(--space-12, 3rem); }
/* The Afro Semiotics card: a faint black tint instead of the faint white glass, so it stands off the ember (Nick, 2026-11-16). */
.story-now { background: rgba(26, 26, 27, .28); border-color: rgba(245, 242, 238, .08); box-shadow: none; }
/* Phones: the lantern's construction stays inside its own box, so its guides stop below the intro text (Nick, 2026-11-16). */
@media (max-width: 767px) {
  .story-hero__construct, .story-hero__construct .construct { overflow: hidden; }
}
/* The lantern on the Story opening gets the archive's bounding frame: four lines that draw in, then faint handles that pulse. */
.story-frame line { fill: none; stroke: rgba(245, 242, 238, .34); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: square;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: storyFrame 420ms linear forwards; }
.story-frame line:nth-child(1) { animation-delay: 1.2s; }
.story-frame line:nth-child(2) { animation-delay: 1.62s; }
.story-frame line:nth-child(3) { animation-delay: 2.04s; }
.story-frame line:nth-child(4) { animation-delay: 2.46s; }
@keyframes storyFrame { to { stroke-dashoffset: 0; } }
.story-frame__handles rect, .story-frame__handles circle { fill: rgba(245, 242, 238, .38); opacity: 0; animation: storyHandles 600ms ease 2.9s forwards, scnPulse 3.2s ease-in-out 3.5s infinite; }
@keyframes storyHandles { to { opacity: 1; } }
@keyframes scnPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .story-frame line { stroke-dashoffset: 0; animation: none; }
  .story-frame__handles rect, .story-frame__handles circle { opacity: 1; animation: none; }
}

/* Afro Semiotics card (Nick, 2026-11-17): full squircle corners, the sitewide CTA pill,
   and the two marks in the archive's gold so they match what visitors meet in /semiotics */
.story-now__scene { border-radius: var(--sq-r, 16px); }
.story-now__cta { margin-top: var(--space-6, 1.5rem); border-color: var(--beige); }
.story-now__mark {
  background: linear-gradient(180deg, #ffeccc 0%, #f0b868 60%, #d8742a 100%);
  filter: drop-shadow(0 0 10px rgba(255, 170, 90, 0.45));
}
