/* HikmaAI scene. Screens first, refocused per beat; the ground is the screens' own. One accent, the purple of the action
   (#7d5bb8, sampled from its button). One motion idea: the camera and the layers move by CSS transition on state. */
.hk { --acc: #7d5bb8; background: #030816; }
.story:has(.hk), .story:has(.hk) .story-scene, .story:has(.hk) .story-prog { background: #030816; color: #f2f4f8; }

.hk .hk-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease), visibility 0s linear 420ms; }
.story[data-layer="hero"] .hk-hero, .story[data-layer="cta"] .hk-hero, .story[data-layer="problem"] .hk-problem, .story[data-layer="features"] .hk-features { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Redraws over a screen live in its pixel space and take its transform, with the same timing as the screen (story.css). */
.hk-over { position: absolute; top: 0; left: 0; width: 1600px; height: 803px; max-width: none; overflow: visible; transform-origin: 0 0; transition: transform 700ms var(--ease); pointer-events: none; }
/* 2. the four wires, lit up to where they meet */
.hk-lit { fill: none; stroke: var(--acc); stroke-width: .5; stroke-linejoin: round; opacity: 0; transition: opacity 420ms var(--ease) 300ms; }
.story[data-layer="problem"] .hk-lit { opacity: 1; }
/* 4. the page steps back, the button stays */
.hk-veil { fill: #030816; opacity: 0; transition: opacity 420ms var(--ease); }
.story[data-layer="cta"] .hk-veil { opacity: .62; }
@media (prefers-reduced-motion: reduce) { .hk .hk-layer, .hk-over, .hk-lit, .hk-veil { transition: none; } }
