:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #071627; }
.page { min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.visual { position: relative; width: min(100vw, 177.68svh); aspect-ratio: 1672 / 941; overflow: hidden; animation: arrive 1.2s ease-out both; }
.visual picture, .visual img, .flow { display: block; width: 100%; height: 100%; }
.visual img { object-fit: cover; }
.story-reveal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: story-emerge 2.2s .6s both; }
.story-reveal-mobile { display: none; }
.flow { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.flow-mobile { display: none; }
.flow path { fill: none; stroke: #d4f4ff; stroke-linecap: round; stroke-dasharray: 38 962; animation: travel 5s linear infinite; }
.flow-glow { stroke-width: 9; opacity: .25; filter: drop-shadow(0 0 8px #4cc6ff); }
.flow-spark { stroke-width: 2; opacity: .78; filter: drop-shadow(0 0 5px #4cc6ff); }
@keyframes arrive { from { opacity: .55; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes travel { to { stroke-dashoffset: -1000; } }
@keyframes story-emerge { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

@media (max-width: 700px) {
  .visual { width: 100%; height: 100svh; height: 100dvh; aspect-ratio: auto; }
  .flow-wide, .story-reveal-wide { display: none; }
  .flow-mobile, .story-reveal-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .visual, .flow path, .story-reveal { animation: none; }
  .flow, .story-reveal { display: none; }
}
