/*
 * Copyright (c) 2026 Maelstrom AI Pty Ltd ATF Maelstrom AI Holding Trust. All rights reserved.
 * Proprietary and confidential. Use is subject to the LICENSE file.
 * SPDX-License-Identifier: LicenseRef-Maelstrom-Proprietary
 */
/* The investigation flow. Loaded after theme.css. The stage is a dark band in both themes (data-theme="dark" on the stage), as light needs the dark;
   the button and the list follow the theme of the page. No inline style is used. */
.flow{container-type:inline-size;margin:0;min-width:0}
.flow__stage{--flow-safe:76px;position:relative;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--lw-border);border-radius:var(--lw-r-3);box-shadow:var(--lw-shadow-3);color:var(--lw-text);
  background-color:var(--lw-bg-deep);
  background-image:radial-gradient(60% 70% at 22% 30%,rgba(111,208,230,.09),transparent 70%),radial-gradient(60% 70% at 80% 78%,rgba(111,208,230,.07),transparent 70%),linear-gradient(180deg,#05090e 0,var(--lw-bg-deep) 55%,var(--lw-bg) 100%)}
@container (max-width:639.98px){.flow__stage{--flow-safe:104px;aspect-ratio:2/3}}
@container (min-width:640px) and (max-width:899.98px){.flow__stage{aspect-ratio:4/3}}
/* Two layers: the light, small and stretched so that it blooms, and the sharp picture over it. */
.flow__glow{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;filter:blur(2px)}
.flow__canvas{position:relative;display:block;width:100%;height:100%}
/* The edges of the picture fall into the dark, and the lower third is darker under its line. */
.flow__stage::before,.flow__stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none}
.flow__stage::before{background:radial-gradient(120% 120% at 50% 50%,transparent 55%,rgba(2,6,10,.6) 100%)}
.flow__stage::after{background:linear-gradient(180deg,transparent calc(100% - var(--flow-safe) - 30px),rgba(3,8,12,.82) 100%);transition:opacity .6s var(--lw-ease-out)}
.flow--end .flow__stage::after{opacity:0}
.flow__title,.flow__summary,.flow__line,.flow__ticks{position:absolute;z-index:2;margin:0;max-width:none;opacity:0;pointer-events:none;transition:opacity .3s var(--lw-ease-out)}
.flow__title.is-on,.flow__summary.is-on,.flow__line.is-on,.flow__ticks.is-on{opacity:1}
.flow__title,.flow__summary{left:0;right:0;text-align:center;font-weight:800;letter-spacing:-.025em;line-height:1.1;font-size:clamp(1.5rem,5.6cqw,2.9rem);text-wrap:balance;padding:0 var(--lw-s-4)}
/* The title stands beside the first node. */
.flow__title{left:32%;right:0;top:calc((100% - var(--flow-safe))/2);transform:translateY(-50%);text-align:left}
/* The end card: the name, then the line. */
.flow__summary{bottom:22px;font-size:clamp(1.35rem,3.4cqw,2.1rem)}
.flow__summary p{margin:0;max-width:none}
.flow__summary .flow__brand{margin-bottom:.3em;color:var(--lw-accent);font-size:clamp(.9375rem,1.7cqw,1.125rem);font-weight:800;letter-spacing:.02em}
.flow__line{left:var(--lw-s-4);right:var(--lw-s-4);bottom:30px;font-weight:600;line-height:1.3;font-size:.9375rem;text-wrap:balance}
.flow__ticks{left:var(--lw-s-4);bottom:14px;display:flex;gap:5px}
.flow__ticks span{width:16px;height:3px;border-radius:2px;background:var(--lw-text-2);opacity:.25}
.flow__ticks .is-done{opacity:.6}
.flow__ticks .is-cur{opacity:1;background:var(--lw-accent)}
@container (min-width:640px){.flow__line{left:var(--lw-s-5);bottom:34px;font-size:clamp(1.0625rem,1.8cqw,1.3125rem)}.flow__ticks{left:var(--lw-s-5);bottom:16px}}
/* The still frame (reduced motion): the whole flow at a size that reads, in a box that scrolls sideways. */
.flow--still .flow__stage{aspect-ratio:auto;height:min(78vh,620px);overflow-x:auto;overflow-y:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%)}
@container (max-width:639.98px){.flow--still .flow__stage{height:min(70vh,470px)}}
.flow--still .flow__canvas,.flow--still .flow__glow{width:auto;max-width:none}
.flow--still .flow__stage::before,.flow--still .flow__stage::after{content:none}
.flow__stage:focus-visible{outline:3px solid var(--lw-focus);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.flow__title,.flow__summary,.flow__line,.flow__ticks{transition:none}}
.flow__bar{display:flex;gap:var(--lw-s-3);align-items:center;justify-content:flex-end;margin-top:var(--lw-s-3)}
.flow__caption{flex:1;min-width:0;max-width:none;margin:0;color:var(--lw-text-2);font-size:var(--lw-t-0);line-height:1.5}
.flow__pause{flex:none;min-width:5.5rem;min-height:var(--lw-tap);justify-content:center}
.flow__steps{margin-top:var(--lw-s-3);border-top:1px solid var(--lw-border)}
.flow__steps>summary{display:flex;align-items:center;min-height:var(--lw-tap);cursor:pointer;color:var(--lw-accent);font-weight:700}
.flow__steps ol{margin:0 0 var(--lw-s-4);padding-left:1.5rem;color:var(--lw-text-2)}
.flow__steps li{max-width:var(--lw-measure);margin-bottom:var(--lw-s-2)}
