/* Orion Threat Model — design tokens (from Figma variables, docs/design-tokens.md) */
:host {
  /* Mint scale */
  --mint-100: #e8f6ea;
  --mint-200: #c6e9ca;
  --mint-300: #abd0b0;
  --mint-400: #8caa90;
  --mint-500: #677b69;
  --mint-600: #4f5d51;
  --mint-700: #3b463d;
  --mint-800: #1f241f;
  --mint-900: #111211;
  --trace-mint: #c6e9ca;
  --hash-black: #111211;
  --bw-000: #000000;

  /* Path / marker accents (raw fills, exact from Figma) */
  --path-traditional: #c4a84a;
  --path-ai: #4abfb0;

  /* Type */
  --font-mono: "Monaspace Krypton", ui-monospace, "SF Mono", Menlo, monospace;
  --font-sans: "Archivo", system-ui, -apple-system, sans-serif;

  /* Layout */
  --sidebar-w: 405px;
  --navbar-h: 60px;
}

/* Orion motion language — durations, easings, stagger + shared keyframes.
   Single source of truth for animation (see docs/MOTION.md). CSS/SVG-first:
   no JS animation lib. Everything honours prefers-reduced-motion (block below). */
:host {
  /* Durations */
  --mo-fast: 120ms;
  --mo-quick: 200ms;
  --mo-base: 320ms;
  --mo-slow: 520ms;
  --mo-draw: 720ms;
  /* Easings */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* reveals / enter */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);   /* state changes */
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);    /* markers / chips overshoot */
  /* Cascade unit */
  --mo-stagger: 55ms;
}

/* ---------- shared keyframes ---------- */
@keyframes mo-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mo-fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes mo-fade-left { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes mo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mo-scale-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mo-seal-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
/* overlay seal materialises to its faint 0.55 rest opacity (canvas seal ends at 1) */
@keyframes mo-ov-seal-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); } to { opacity: 0.55; transform: translate(-50%, -50%) scale(1); } }
@keyframes mo-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes mo-overlay-in { from { opacity: 0; transform: translateY(6px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes mo-overlay-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px) scale(0.985); } }
@keyframes mo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* vertical line drawing itself top→bottom (trace spine) */
@keyframes mo-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* "ONLINE" breathing indicator */
@keyframes mo-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--trace-mint); } 50% { opacity: 0.55; box-shadow: 0 0 2px var(--trace-mint); } }
/* active-node port glow */
@keyframes mo-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* corridor "data flow" marching ants */
@keyframes mo-flow { to { stroke-dashoffset: -20; } }
/* canvas marker tooltip: fade + 4px rise toward its final spot (keeps the centering translate) */
@keyframes mo-tip-in { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } to { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); } }
@keyframes mo-tip-in-below { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 10px); } }
/* wizard media idle drift (slow push-in, alternates) */
@keyframes mo-drift { from { transform: none; } to { transform: scale(1.04) translate(-1%, -0.5%); } }

/* ---------- reduced motion (accessibility-first) ---------- */
@media (prefers-reduced-motion: reduce) {
  :host {
    --mo-fast: 1ms; --mo-quick: 1ms; --mo-base: 1ms; --mo-slow: 1ms; --mo-draw: 1ms; --mo-stagger: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Onboarding wizard (Figma 9093-10111 … 9093-10157) ----------
   Shown once, on top of the dimmed threat model. 800x500 window, two 400px columns:
   step media on the left, copy + carousel controls on the right. Motion follows
   docs/MOTION.md (tokens from motion.css, reduced-motion handled globally). */
/* Transparent stage over the whole app: the threat model stays visible, dimmed,
   behind the window (Figma "Wizard" frame). */
.wz { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* Behind the wizard: navbar stays lit, the body is dimmed and nothing is
   clickable. Releasing the class fades the body back up. */
.app__body { transition: opacity var(--mo-slow) var(--ease-standard); }
.app.is-onboarding .app__body { opacity: 0.35; }
.app.is-onboarding .nav, .app.is-onboarding .app__body { pointer-events: none; user-select: none; }
/* Canvas paint held back while the wizard is open: masks undrawn, markers out.
   The doubled state class outranks app.css's `.is-revealing` draw rule (same
   specificity, later in the cascade); otherwise the draw would run unseen
   behind the wizard and have nothing left to play on release. */
.canvas__chart.is-held.is-held .canvas__path-mask { animation: none; stroke-dashoffset: 1; }
.canvas__chart.is-held .canvas__marker-pop { animation: none; opacity: 0; }
/* After the hold the nodes are already in, so the paint starts right away
   instead of waiting out the page-load cascade. */
.canvas__chart.is-resumed.is-revealing .canvas__path-mask { animation-delay: calc(120ms + var(--i, 0) * 30ms); }
.canvas__chart.is-resumed .canvas__marker-pop { animation-delay: calc(790ms + var(--i, 0) * 30ms); }

.wz__window { position: relative; width: 800px; max-width: 100%; height: 500px; max-height: 100%; display: flex; flex-direction: column; background: var(--mint-800); border: 1px solid var(--mint-700); box-shadow: 16px 16px 0 0 var(--bw-000); transform-origin: center; animation: mo-overlay-in var(--mo-base) var(--ease-out) backwards; }
.wz__window:focus { outline: none; }
/* .app receives programmatic focus when the wizard ends; it is not a control */
.app:focus { outline: none; }
.wz__window.is-closing { animation: mo-overlay-out var(--mo-base) var(--ease-standard) forwards; }

/* title bar */
.wz__bar { flex: none; height: 48px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--mint-700); animation: mo-fade var(--mo-base) var(--ease-out) 80ms backwards; }
.wz__bar-icon { flex: none; width: 18px; height: 18px; object-fit: cover; pointer-events: none; }
.wz__bar-title { font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--mint-100); white-space: nowrap; }
/* 12px glyph inside a 28px hit area; negative margin keeps it on the 16px gutter */
.wz__close { flex: none; margin: 0 -8px 0 auto; padding: 8px; display: inline-flex; background: transparent; border: 0; line-height: 0; opacity: 1; transition: opacity var(--mo-quick) var(--ease-standard); }
.wz__close:hover { opacity: 0.7; }
.wz__close img { display: block; }

/* body */
.wz__body { flex: 1; min-height: 0; display: flex; }
.wz__media { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: var(--hash-black); border-right: 1px solid var(--mint-700); animation: mo-fade var(--mo-base) var(--ease-out) 140ms backwards; }
/* crossfade + push-in: the incoming image settles from 1.04 to rest */
.wz__media-item { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity var(--mo-base) var(--ease-standard), transform var(--mo-slow) var(--ease-out); }
.wz__media-item.is-on { opacity: 1; transform: none; }
.wz__media-img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
/* slow idle drift on the visible image only (its own element, so it never
   fights the wrapper's crossfade transform) */
.wz__media-item.is-on .wz__media-img { animation: mo-drift 14s var(--ease-standard) infinite alternate; }

.wz__panel { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.wz__copy { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 16px; border-bottom: 1px solid var(--mint-700); overflow-y: auto; overflow-wrap: break-word; }
/* keyed per step in Wizard.tsx, so these replay on every step change */
.wz__title { margin: 0; font-family: var(--font-sans); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -.5px; color: var(--mint-200); animation: mo-fade-up var(--mo-base) var(--ease-out) 200ms backwards; }
.wz__text { margin: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: .2px; color: var(--mint-100); animation: mo-fade-up var(--mo-base) var(--ease-out) calc(200ms + var(--mo-stagger)) backwards; }

/* the takeaway step's PDF button: 24px under the copy (16px gap + 8px), and
   it joins the copy's per-step entrance one stagger later */
.wz__download { align-self: flex-start; margin-top: 8px; animation: mo-fade-up var(--mo-base) var(--ease-out) calc(200ms + 2 * var(--mo-stagger)) backwards; }

/* carousel controls */
.wz__controls { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px; animation: mo-fade var(--mo-base) var(--ease-out) 260ms backwards; }
.wz__dots { display: flex; align-items: center; gap: 8px; }
.wz__dot { position: relative; flex: none; width: 8px; height: 8px; padding: 0; border: 0; background: var(--hash-black); transition: width var(--mo-quick) var(--ease-standard), background var(--mo-quick) var(--ease-standard); }
.wz__dot.is-on { width: 16px; background: var(--trace-mint); }
.wz__dot:hover:not(.is-on) { background: var(--mint-600); }
/* larger hit area than the 8px square */
.wz__dot::before { content: ""; position: absolute; inset: -8px -4px; }
/* padding top>bottom by 2px optically centers the all-caps mono label (as .ov__cta) */
.wz__next { flex: none; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 8px 0 16px; background: var(--trace-mint); border: 0; color: var(--hash-black); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; transition: background var(--mo-quick) var(--ease-standard); }
.wz__next:hover { background: #fff; }
.wz__next-icon { display: block; flex: none; margin-top: -2px; transition: transform var(--mo-quick) var(--ease-out); }
.wz__next:hover .wz__next-icon { transform: translateX(2px); }

/* footer */
.wz__foot { flex: none; min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 0 16px; border-top: 1px solid var(--mint-700); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-400); animation: mo-fade var(--mo-base) var(--ease-out) 260ms backwards; }

/* Mobile: no Figma frame for this, so it stacks (media on top) and keeps the
   window chrome; copy height is fixed so the window doesn't jump between steps. */
@media (max-width: 768px) {
  .wz { padding: 16px 24px 24px 16px; }
  .wz__window { height: auto; box-shadow: 8px 8px 0 0 var(--bw-000); }
  .wz__body { flex-direction: column; }
  .wz__media { flex: none; height: 200px; border-right: 0; border-bottom: 1px solid var(--mint-700); }
  .wz__panel { flex: 1 1 auto; min-height: 0; }
  .wz__copy { flex: 1 1 auto; min-height: 236px; }
  .wz__title { font-size: 22px; }
  .wz__text { font-size: 15px; }
  .wz__foot { flex-wrap: wrap; padding: 6px 16px; }
}

/* ---------- Use-case marker tooltip (MarkerTooltip.tsx) ----------
   Styled after the canvas callout in the design (wizard step 3 frame): dark
   panel, mono uppercase label, hard shadow and a pointer at the marker. */
.canvas__tip { position: absolute; z-index: 3; max-width: 260px; padding: 8px 12px 7px; transform: translate(-50%, calc(-100% - 10px)); background: var(--mint-800); border: 1px solid var(--mint-600); box-shadow: 4px 4px 0 0 var(--bw-000); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .7px; text-transform: uppercase; text-align: center; color: var(--mint-100); pointer-events: none; animation: mo-tip-in var(--mo-quick) var(--ease-out); }
.canvas__tip.is-below { transform: translate(-50%, 10px); animation-name: mo-tip-in-below; }
/* pointer: a rotated square sharing the panel's border */
.canvas__tip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: var(--mint-800); border-right: 1px solid var(--mint-600); border-bottom: 1px solid var(--mint-600); transform: translate(-50%, -4px) rotate(45deg); }
.canvas__tip.is-below::after { top: auto; bottom: 100%; transform: translate(-50%, 4px) rotate(225deg); }

/* ---------- PDF download button (PdfDownloadLink.tsx) ----------
   Figma 9217-8562 / 9215-7796: mint-700 fill, trace-mint mono label, 16px
   download glyph. Padding top>bottom by 2px optically centers the caps label. */
.pdf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 2px 12px 0; background: var(--mint-700); color: var(--trace-mint); text-decoration: none; font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; transition: background var(--mo-quick) var(--ease-standard); }
.pdf-btn:hover { background: var(--mint-600); }
.pdf-btn__icon { display: block; flex: none; margin-top: -2px; transition: transform var(--mo-quick) var(--ease-out); }
.pdf-btn:hover .pdf-btn__icon { transform: translateY(2px); }

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  background: var(--bw-000);
  color: var(--mint-100);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }

/* focus: no mouse-click box, keep keyboard ring (kills the blue browser outline) */
button:focus:not(:focus-visible), [tabindex]:focus:not(:focus-visible) { outline: none; }
.canvas__svg [tabindex]:focus { outline: none; }
button:focus-visible, .canvas__svg [tabindex]:focus-visible { outline: 2px solid var(--trace-mint); outline-offset: 2px; }

.app { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
.app__body { flex: 1; display: flex; min-height: 0; }
.app__canvas { flex: 1; min-width: 0; display: flex; }
.app__src {
  position: fixed; bottom: 6px; right: 8px; font-size: 10px; letter-spacing: .7px;
  color: var(--mint-600); text-transform: uppercase; pointer-events: none;
}

/* ---------- Navbar ---------- */
.nav {
  height: var(--navbar-h); flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: var(--hash-black); border: 1px solid var(--mint-700);
}
.nav__brand { display: flex; align-items: center; gap: 6px; background: var(--mint-800); padding: 4px 8px; text-decoration: none; }
.nav__logo { display: block; width: 67px; height: 16px; flex: none; }
.nav__sep, .nav__labs { font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.nav__sep { color: var(--mint-400); }
.nav__labs { color: var(--trace-mint); }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__stats { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-400); }
.nav__trad { color: var(--path-traditional); }
.nav__ai { color: var(--path-ai); }
.nav__dot { color: var(--mint-600); }
.nav__online { display: flex; align-items: center; gap: 6px; background: var(--mint-800); padding: 4px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1; letter-spacing: .7px; color: var(--trace-mint); text-transform: uppercase; }
/* nudge up 1px: the all-caps ONLINE label sits ~1px high in its line box, so
   align the dot to the text's optical center rather than the line-box center. */
.nav__pulse { position: relative; top: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--trace-mint); box-shadow: 0 0 6px var(--trace-mint); animation: mo-pulse 2.4s var(--ease-standard) infinite; }
/* padding top>bottom by 1px: all-caps mono ink sits ~1px high in the line box,
   so nudge it down optically without a transform (box height unchanged). */
.nav__cta { display: inline-flex; align-items: center; justify-content: center; line-height: 1; background: var(--trace-mint); color: var(--hash-black); text-decoration: none; padding: 9px 12px 7px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .7px; text-transform: uppercase; transition: background var(--mo-quick) var(--ease-standard); }
.nav__cta:hover { background: #fff; }

/* ---------- Sidebar ---------- */
.sb { width: var(--sidebar-w); flex: none; border: 1px solid var(--mint-700); border-top: 0; background: var(--hash-black); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--mint-700) var(--hash-black); }
.sb::-webkit-scrollbar { width: 12px; }
.sb::-webkit-scrollbar-track { background: var(--hash-black); border-left: 1px solid var(--mint-800); }
.sb::-webkit-scrollbar-thumb { background: var(--mint-700); border: 3px solid var(--hash-black); }
.sb::-webkit-scrollbar-thumb:hover { background: var(--mint-600); }
.sb__reset { display: none; }
.sb__head { padding: 24px; border-bottom: 1px solid var(--mint-700); }
.sb__titlebar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sb__seal { width: 26px; height: 26px; flex: none; }
.sb__title { font-family: var(--font-sans); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -.5px; color: var(--trace-mint); margin: 0; }
.sb__hint { font-family: var(--font-sans); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px; color: var(--mint-400); margin: 0; }
.sb__hint-mark { color: var(--trace-mint); }
.sb__tabs { display: flex; align-items: stretch; gap: 0; padding: 8px; border-bottom: 1px solid var(--mint-700); }
.sb__tab { flex: 1 1 0; min-width: 0; text-align: center; background: transparent; border: 1px solid var(--mint-700); color: var(--trace-mint); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; padding: 6px 10px; transition: background var(--mo-quick) var(--ease-standard), color var(--mo-quick) var(--ease-standard), border-color var(--mo-quick) var(--ease-standard); }
.sb__tab.is-on { background: var(--mint-800); color: var(--mint-100); border-color: var(--mint-500); }
.sb__list { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-right: 1px solid var(--mint-700); }
.sb__node { border: 1px solid var(--mint-700); background: var(--hash-black); transition: background var(--mo-quick) var(--ease-standard), border-color var(--mo-quick) var(--ease-standard); }
.sb__node:hover, .sb__node.is-hl, .sb__node.is-open { background: var(--mint-800); }
.sb__node.is-open { border-color: var(--mint-500); }
.sb__node.is-hl { border-color: var(--mint-700); }
.sb__node-row { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: 0; color: var(--mint-100); padding: 8px 16px; text-align: left; }
.sb__node-label { font-size: 14px; font-weight: 600; font-family: var(--font-sans); line-height: 1; }
/* baseline (not center): the 14px sans label + 12px mono meta have different
   box heights, so centering leaves the meta's baseline ~1px above the label's
   and it reads as sitting high. Baseline-align makes their text sit on one line. */
.sb__node-main { display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; }
.sb__node-meta { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 12px; line-height: 1.2; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.sb__kind { color: var(--mint-400); }
.sb__sep { color: var(--mint-400); }
/* the warning triangle reads optically high (apex point); nudge it down a hair
   so it sits centered with the mono meta text/badge. */
.sb__warn { color: var(--mint-500); flex: none; transition: color var(--mo-quick) var(--ease-standard); }
.sb__node:hover .sb__warn,
.sb__node.is-open .sb__warn,
.sb__node.is-hl .sb__warn { color: var(--mint-200); }
.sb__badge { display: inline-flex; }
.sb__badge-s { color: var(--path-traditional); }
.sb__badge-d { color: var(--path-ai); }
.sb__chev { color: var(--mint-500); font-size: 12px; flex: none; display: inline-flex; align-items: center; transition: color var(--mo-quick) var(--ease-standard), transform var(--mo-base) var(--ease-standard); }
.sb__node:hover .sb__chev,
.sb__node.is-open .sb__chev,
.sb__node.is-hl .sb__chev { color: var(--mint-200); }
.sb__close { display: block; color: var(--mint-200); }
/* expand/collapse via grid-rows (animates to auto height, pure CSS) */
.sb__node-bodywrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mo-base) var(--ease-standard); }
.sb__node.is-open .sb__node-bodywrap { grid-template-rows: 1fr; }
.sb__node-body { overflow: hidden; min-height: 0; }
.sb__node-bodyinner { padding: 16px 0; border-top: 1px solid var(--mint-700); opacity: 0; transition: opacity var(--mo-quick) var(--ease-standard); }
.sb__node.is-open .sb__node-bodyinner { opacity: 1; }
.sb__desc { font-family: var(--font-sans); font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0.5px; color: var(--mint-100); margin: 0 0 12px; padding: 0 16px; }
.sb__sub { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-500); margin: 12px 0 6px; padding: 0 16px; }
.sb__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sb__point { width: 100%; display: flex; align-items: center; gap: 16px; background: transparent; border: 0; border-top: 1px solid var(--mint-700); color: var(--mint-100); padding: 9px 16px; text-align: left; font-family: var(--font-sans); font-size: 13px; transition: background var(--mo-quick) var(--ease-standard); }
.sb__point-search { transition: color var(--mo-quick) var(--ease-standard); }
.sb__point:hover { background: var(--mint-900); }
.sb__point-title { flex: 1; min-width: 0; color: var(--mint-300); font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.5px; }
.sb__point-search { color: var(--mint-500); flex: none; }
.sb__point:hover .sb__point-search { color: var(--trace-mint); }
.sb__code { display: inline-flex; align-items: center; justify-content: flex-start; width: 24px; flex: none; font-family: var(--font-mono); font-size: 12px; }
.sb__point .sb__code { padding-right: 16px; border-right: 1px solid var(--mint-700); }
.sb__code--traditional { color: var(--path-traditional); }
.sb__code--ai { color: var(--path-ai); }
.sb__examples { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin: 0; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--mint-700) transparent; }
.sb__examples::-webkit-scrollbar { height: 6px; }
.sb__examples::-webkit-scrollbar-thumb { background: var(--mint-700); }
.sb__ex { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sb__ex-initials { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .3px; color: var(--mint-400); }
/* Logos are PNGs with baked-in black backgrounds. `lighten` drops the black
   (it loses to the node's mint-800 backdrop) so each tile blends in; grayscale
   keeps the muted monochrome look the Figma luminosity blend gave. */
.sb__ex img { mix-blend-mode: lighten; filter: grayscale(1); opacity: 0.85; }
.sb__ex--text { border: 1px solid var(--mint-700); font-family: var(--font-mono); font-size: 9px; letter-spacing: .5px; color: var(--mint-400); }

/* ---------- Canvas ---------- */
.canvas { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--mint-700); border-top: 0; border-left: 0; }
.canvas__topbar { height: 26px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--hash-black); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .7px; text-transform: uppercase; }
.canvas__topbar-label { color: var(--mint-300); }
.canvas__topbar-value { color: var(--mint-100); }
.canvas__chart { flex: 1; min-height: 0; background-color: var(--hash-black); position: relative; overflow: hidden; border-top: 1px solid var(--mint-700); border-bottom: 1px solid var(--mint-700); }
/* dot grid — middle layer, above the seal, below the diagram */
.canvas__chart::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(var(--mint-800) 1px, transparent 1px); background-size: 15px 15px; background-position: center; }
.canvas__svg { position: relative; z-index: 2; width: 100%; height: 100%; display: block; }
/* seal watermark — back layer (z-index 0), centered behind the dot grid */
.canvas__seal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; height: 83%; width: auto; opacity: 1; pointer-events: none; }
.canvas__path { cursor: pointer; transition: opacity var(--mo-base) var(--ease-standard), stroke-width var(--mo-quick) var(--ease-standard); }
.canvas__path:hover, .canvas__path.is-emph { stroke-width: 2.5; }

/* ---------- node / marker interaction states (CSS-driven, transitionable) ---------- */
.canvas__node-box { stroke: var(--mint-500); fill: var(--hash-black); transition: stroke var(--mo-quick) var(--ease-standard), fill var(--mo-quick) var(--ease-standard); }
.canvas__node-iconbox { stroke: var(--mint-500); fill: none; transition: stroke var(--mo-quick) var(--ease-standard), fill var(--mo-quick) var(--ease-standard); }
.canvas__node-port { stroke: var(--mint-500); transition: stroke var(--mo-quick) var(--ease-standard); }
.canvas__node.is-hover .canvas__node-box, .canvas__node.is-hover .canvas__node-iconbox, .canvas__node.is-hover .canvas__node-port { stroke: var(--mint-400); }
.canvas__node.is-hover .canvas__node-box { fill: var(--mint-800); }
.canvas__node.is-active .canvas__node-box, .canvas__node.is-active .canvas__node-iconbox, .canvas__node.is-active .canvas__node-port { stroke: var(--trace-mint); }
.canvas__node.is-active .canvas__node-box { fill: var(--mint-800); }
.canvas__node.is-active .canvas__node-iconbox { fill: var(--mint-300); }
.canvas__node.is-hover { transform: scale(1.02); }
.canvas__node.is-active { filter: drop-shadow(0 0 5px rgba(198, 233, 202, 0.35)); }
.canvas__node.is-active .canvas__node-portdot { animation: mo-glow 1.6s var(--ease-standard) infinite; }
/* markers */
.canvas__marker { transition: opacity var(--mo-base) var(--ease-standard); }
.canvas__marker-pop { transition: transform var(--mo-quick) var(--ease-pop), filter var(--mo-quick) var(--ease-standard); }
.canvas__marker:hover .canvas__marker-pop { transform: scale(1.15); }
.canvas__marker.is-emph .canvas__marker-pop { filter: drop-shadow(0 0 3px rgba(198, 233, 202, 0.4)); }
.canvas__boundary { flex: none; display: flex; background: var(--hash-black); }
.canvas__boundary span { flex: 1; text-align: center; padding: 4px 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-400); }
.canvas__boundary span:first-child { border-right: 1px dashed var(--mint-700); }
.canvas__footer { flex: none; display: flex; justify-content: space-between; padding: 16px; background: var(--bw-000); border: 1px solid var(--mint-700); border-bottom: 0; border-left: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-400); }

/* ---------- Overlay ---------- */
/* Desktop: centered modal sized to its content (widest trace 472px, tallest
   414px), not a full-screen takeover; tablet/mobile go back to full size below. */
.ov { position: fixed; inset: calc(var(--navbar-h) + 24px) 24px 24px 24px; margin: auto; width: min(1200px, calc(100vw - 48px)); height: min(720px, calc(100vh - var(--navbar-h) - 48px)); background: var(--hash-black); border: 1px solid var(--mint-700); display: flex; flex-direction: column; z-index: 50; transform-origin: center; animation: mo-overlay-in var(--mo-base) var(--ease-out); }
.ov.is-closing { animation: mo-overlay-out var(--mo-base) var(--ease-standard) forwards; }
/* Backdrop is its own element (not .ov::before): .ov animates transform, which
   would make a fixed pseudo-element track the modal box mid-animation. Clicking
   it closes the overlay. */
.ov-backdrop { position: fixed; inset: var(--navbar-h) 0 0 0; z-index: 49; background: rgba(0, 0, 0, 0.6); animation: mo-fade var(--mo-base) var(--ease-out); }
.ov-backdrop.is-closing { animation: mo-fade var(--mo-base) var(--ease-standard) reverse forwards; }
/* content cascade after the panel appears (fade-only — a translateY here would
   briefly grow .ov__body's scroll-area and flash a scrollbar) */
.ov__left { animation: mo-fade var(--mo-base) var(--ease-out) 120ms backwards; }
.ov__center { animation: mo-fade var(--mo-base) var(--ease-out) 160ms backwards; }
.ov__right { animation: mo-fade var(--mo-base) var(--ease-out) 200ms backwards; }
.trace__step { animation: mo-scale-in var(--mo-base) var(--ease-out) backwards; animation-delay: calc(200ms + var(--i, 0) * 70ms); transform-origin: left center; }
.ov__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--mint-800); border-bottom: 1px solid var(--mint-700); }
.ov__title { font-weight: 600; font-family: var(--font-sans); line-height: 1.2; }
.ov__head .sb__code { width: auto; padding-right: 16px; border-right: 1px solid var(--mint-700); }
/* Era pill sits on one line; the oversized separator dot must not inflate the
   row height (line-height: 0) or it throws off vertical centering. */
.ov__era { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.7px; text-transform: uppercase; color: var(--path-ai); }
.ov__era--traditional { color: var(--path-traditional); }
.ov__mid { color: var(--mint-400); margin-right: 8px; font-family: var(--font-mono); font-weight: 500; font-size: 22px; line-height: 0; }
.ov__close { margin-left: auto; padding: 0; background: transparent; border: 0; color: var(--mint-200); font-size: 16px; line-height: 1; cursor: pointer; }
/* Fixed-height body: the grid row is bounded to the modal, so each column scrolls
   INTERNALLY (right accordion) instead of the whole overlay scrolling — that keeps
   the CTA and the left-panel Clippy pinned/visible. */
.ov__body { flex: 1; display: grid; grid-template-columns: minmax(0, 380px) minmax(520px, 1fr) minmax(0, 300px); grid-template-rows: minmax(0, 1fr); min-height: 0; overflow: hidden; }
.ov__left, .ov__right { padding: 0; background: var(--mint-800); display: flex; flex-direction: column; min-height: 0; }
.ov__left { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--mint-600) transparent; }
.ov__left, .ov__center { border-right: 1px solid var(--mint-700); }
/* safe center: a trace wider than a narrow-desktop column scrolls instead of
   being clipped on both sides */
.ov__center { padding: 24px; position: relative; overflow: auto; display: flex; align-items: safe center; justify-content: safe center; }
/* dot grid — middle layer, above the seal, below the trace */
.ov__center::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(var(--mint-800) 1px, transparent 1px); background-size: 15px 15px; background-position: center; }
/* seal watermark — back layer, faint, tinted via --fill-0 */
.ov__seal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; height: 72%; width: auto; opacity: 0.55; pointer-events: none; --fill-0: var(--mint-800); animation: mo-ov-seal-in var(--mo-draw) var(--ease-out) 140ms backwards; }
.ov__trace-wrap { position: relative; z-index: 2; }
/* Right-panel scenario accordion (replaces the old horizontal .ov__tabs strip).
   Each scenario is a 48px header row (mono code + toggle); the active one expands
   to show its Incident Example / File / User fields. Collapsed rows sit on the
   darker hash-black; the open header matches the panel bg with brighter text. */
/* The accordion scrolls; the CTA below it stays pinned. Slim themed scrollbar. */
.ov__cases { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--mint-600) transparent; }
.ov__cases::-webkit-scrollbar { width: 8px; }
.ov__cases::-webkit-scrollbar-track { background: transparent; }
.ov__cases::-webkit-scrollbar-thumb { background: var(--mint-600); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
.ov__cases::-webkit-scrollbar-thumb:hover { background: var(--mint-500); background-clip: padding-box; }
.ov__case { border-bottom: 1px solid var(--mint-700); }
/* Header row (Figma 2132-1345/1373): 48px, code = Label/M (mono 14px/.5px), the
   right pad matches .ov__head so the toggle lines up with the overlay close. */
.ov__case-head { width: 100%; height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 20px 0 16px; background: var(--hash-black); border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: var(--trace-mint); transition: color var(--mo-quick) var(--ease-standard), background var(--mo-quick) var(--ease-standard); }
.ov__case-head:hover:not(.is-open) { color: var(--mint-100); }
.ov__case.is-open .ov__case-head { background: var(--mint-800); color: var(--mint-100); border-bottom: 1px solid var(--mint-700); }
.ov__case-x, .ov__case-chev { flex: none; display: inline-flex; align-items: center; justify-content: center; }
/* active-case × mirrors the overlay close (same glyph, 16px, mint-200) */
.ov__case-x { font-size: 16px; color: var(--mint-200); }
.ov__case-chev { color: var(--mint-500); transition: color var(--mo-quick) var(--ease-standard); }
/* Smooth expand/collapse: the body grid animates 0fr↔1fr (no magic height); the
   inner clips overflow while it grows and fades in. */
.ov__case-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mo-base) var(--ease-standard); }
.ov__case.is-open .ov__case-body { grid-template-rows: 1fr; }
.ov__case-body-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity var(--mo-base) var(--ease-standard); }
.ov__case.is-open .ov__case-body-inner { opacity: 1; }
/* right-panel field metrics per Figma 2132-1344: 16px padding, 12px labels; the
   File Name value is Body/XS (14px/1.3) while the rest stay Body/XXS (12px). */
.ov__case-body .ov__field { padding: 16px; }
.ov__case-body .ov__flabel { font-size: 12px; margin-bottom: 12px; }
.ov__case-body .ov__val--lg { font-size: 14px; line-height: 1.3; }
/* CTA framed at the panel bottom: bordered container (top divider) + compact
   button (Figma 2132-1390/1391 — container p-8, button h-32 px-12 py-4). */
.ov__cta-wrap { flex: none; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--mint-700); padding: 8px; }
/* each block = full-bleed divider (border spans full column), content padded L/R */
.ov__field { border: 0; border-bottom: 1px solid var(--mint-700); background: transparent; padding: 20px 24px; margin: 0; }
.ov__field:last-child { border-bottom: 0; }
.ov__flabel { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-500); margin: 0 0 8px; }
.ov__flabel::after { content: ":"; }
.ov__text, .ov__val { font-family: var(--font-sans); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px; color: var(--mint-100); margin: 0; }
.ov__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ov__chip-wrap { display: inline-flex; align-items: center; gap: 6px; }
.ov__arrow { color: var(--path-ai); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.7px; text-transform: uppercase; }
.ov__chip { display: inline-flex; align-items: center; gap: 6px; background: var(--hash-black); padding: 4px 8px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--mint-300); transition: background var(--mo-quick) var(--ease-standard), color var(--mo-quick) var(--ease-standard); }
.ov__chip--enf { color: var(--trace-mint); }
.ov__chip-icon { width: 13px; height: 13px; flex: none; }
.ov__user { margin: 0; }
.ov__user > div { display: flex; gap: 12px; margin-bottom: 6px; font-size: 12px; }
.ov__user dt { width: 48px; color: var(--mint-500); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .7px; text-transform: uppercase; }
.ov__user dt::after { content: ":"; }
.ov__user dd { margin: 0; color: var(--mint-100); font-family: var(--font-sans); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px; }
/* No forced height: size from padding + text (8+6+18 line = 32, same as before).
   padding top>bottom by 2px optically centers the all-caps mono label. */
.ov__cta { display: flex; align-items: center; justify-content: center; margin: 0; padding: 8px 12px 6px; line-height: 1.5; text-decoration: none; background: var(--hash-black); border: 0; color: var(--trace-mint); font-family: var(--font-mono); font-size: 12px; letter-spacing: .7px; text-transform: uppercase; transition: background var(--mo-quick) var(--ease-standard); }
.ov__cta:hover { background: var(--mint-700); border-color: var(--mint-700); }
/* Left-panel help bubble + animated Clippy mascot (Figma 2132-1145), pinned to
   the bottom of .ov__left. Bubble tail (square bottom-right corner) points at the
   clip; the wrap's bottom padding lifts the bubble so the clip pokes up beside it. */
/* fade only: a rise (translateY) would briefly push the promo past the bottom of
   .ov__left, which scrolls, and flash a scrollbar while it settles */
.ov__promo { margin-top: auto; display: flex; align-items: flex-end; justify-content: flex-end; padding: 24px; animation: mo-fade var(--mo-base) var(--ease-out); }
.ov__bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 48px; overflow: hidden; }
.ov__bubble { position: relative; max-width: 240px; margin: 0; background: var(--hash-black); padding: 12px 30px 12px 16px; border-radius: 16px 16px 0 16px; font-family: var(--font-sans); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px; color: var(--mint-100); }
/* dismiss (top-right) — hides Clippy for the rest of the session. */
.ov__promo-close { position: absolute; top: 8px; right: 10px; display: inline-flex; padding: 3px; background: transparent; border: 0; line-height: 0; cursor: pointer; opacity: 0.75; transition: opacity var(--mo-quick) var(--ease-standard); }
.ov__promo-close:hover { opacity: 1; }
.ov__bubble-link { color: inherit; text-decoration: underline; }
.ov__bubble-redact { display: inline-block; color: transparent; background-color: var(--mint-100); border-radius: 2px; font-size: 7px; line-height: 1; vertical-align: middle; margin: 0 1px 2px; opacity: 0.85; }
.ov__clippy { flex: none; width: 78px; height: 64px; object-fit: cover; pointer-events: none; user-select: none; }
.ov__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--mint-800); border-top: 1px solid var(--mint-700); font-family: var(--font-mono); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; color: var(--mint-400); }

/* Trace — vertical spine, 16px port markers, 48px dashed connectors, node boxes */
.trace { list-style: none; margin: 0; padding: 0; position: relative; }
/* spine draws top→bottom as the steps cascade in; duration scales with the step
   count (--n, set on .trace) so the line reaches each port as that port appears. */
.trace::before { content: ""; position: absolute; left: 8px; top: 28px; bottom: 28px; width: 1px; background: var(--mint-500); transform-origin: top center; animation: mo-grow-y calc((var(--n, 4) - 1) * 70ms + 160ms) var(--ease-out) 200ms backwards; }
.trace__step { display: flex; align-items: center; padding: 12px 0; position: relative; }
.trace__port { flex: none; width: 16px; height: 16px; background: var(--hash-black); border: 1px solid var(--mint-400); position: relative; z-index: 1; }
.trace__port::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 5px; height: 5px; background: var(--mint-400); }
.trace__step--entity .trace__port { border-radius: 50%; border-color: var(--trace-mint); }
.trace__step--entity .trace__port::after { border-radius: 50%; background: var(--trace-mint); }
.trace__conn { flex: none; width: 48px; height: 0; border-top: 1px dashed var(--mint-500); }
.trace__box { display: inline-flex; align-items: center; border: 1px solid var(--mint-500); background: var(--hash-black); box-shadow: 4px 4px 0 0 #000; }
.trace__step--action .trace__box { gap: 8px; padding: 8px 12px; }
.trace__iconbox { flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--mint-500); }
.trace__logo { flex: none; width: 32px; height: 32px; }
.trace__initials { font-family: var(--font-mono); font-size: 14px; letter-spacing: .5px; color: var(--mint-300); }
.trace__bullet { flex: none; width: 4px; height: 4px; background: var(--trace-mint); }
.trace__box-label { color: var(--mint-100); white-space: nowrap; }
.trace__step--entity .trace__box-label { padding: 16px 24px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 1.5; letter-spacing: .5px; text-transform: uppercase; }
.trace__step--action .trace__box-label { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: .5px; }
.trace__via { display: inline-flex; align-items: center; gap: 8px; color: var(--mint-400); font-family: var(--font-sans); font-size: 12px; letter-spacing: .5px; }
.trace__via-icon { width: 16px; height: 16px; }

/* Responsive — tablet: sidebar narrows */
/* Tablet+: the right panel wraps to its own row, so revert to whole-body scroll
   (the accordion no longer scrolls internally). */
@media (max-width: 1100px) { :host { --sidebar-w: 300px; } .ov { inset: calc(var(--navbar-h) + 8px) 8px 8px 8px; width: auto; height: auto; margin: 0; } .ov__left { overflow: visible; } .ov__body { grid-template-columns: 1fr 1fr; grid-template-rows: none; overflow: auto; } .ov__right { grid-column: 1 / -1; border-top: 1px solid var(--mint-800); } .ov__cases { overflow: visible; flex: none; } }

/* Responsive — mobile: list-first (SPEC §9). Diagram is hidden; the sidebar list
   + full-screen overlay carry the experience. Goal: clean & unbroken, not a
   redesigned mobile UI. */
@media (max-width: 768px) {
  .app__body { flex-direction: column; }
  .sb { width: 100%; flex: 1; border-left: 0; border-right: 0; }
  .app__canvas { display: none; }

  /* navbar: keep brand + CTA only (stats/online are secondary) */
  .nav { padding: 0 10px; gap: 8px; }
  .nav__stats, .nav__online { display: none; }
  .nav__right { gap: 8px; }
  .nav__cta { padding: 8px 10px 6px; font-size: 11px; white-space: nowrap; }

  /* overlay: single column, everything wraps/stacks, no horizontal overflow */
  .ov { inset: calc(var(--navbar-h) + 6px) 6px 6px 6px; }
  .ov__head { padding: 12px 14px; gap: 8px; }
  .ov__title { font-size: 15px; min-width: 0; }
  .ov__head .sb__code { padding-right: 10px; }
  .ov__body { display: block; overflow-y: auto; }
  .ov__left, .ov__center { border-right: 0; border-bottom: 1px solid var(--mint-800); }
  .ov__left, .ov__right { padding: 0; }
  .ov__field { padding: 16px; }
  /* trace flows top-down (no flex-centering that collapses/clips it); seal off */
  .ov__center { display: block; padding: 16px; }
  .ov__seal { display: none; }
  .trace__conn { width: 24px; }
  .trace__box-label { white-space: normal; }
  .ov__cta-wrap { margin: 0; }
  .ov__foot { flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; }
}

/* ---------- page-load reveal (runs once on mount) ---------- */
.nav { animation: mo-fade-down var(--mo-base) var(--ease-out) backwards; }
.sb { animation: mo-fade-left var(--mo-base) var(--ease-out) 80ms backwards; }
.canvas__topbar, .canvas__boundary, .canvas__footer { animation: mo-fade var(--mo-base) var(--ease-out) 150ms backwards; }
.canvas__seal { animation: mo-seal-in var(--mo-draw) var(--ease-out) 200ms backwards; }
.canvas__chart::after { animation: mo-fade var(--mo-base) var(--ease-out) 200ms backwards; }
.canvas__node { transform-box: fill-box; transform-origin: center; transition: opacity var(--mo-base) var(--ease-standard), transform var(--mo-quick) var(--ease-standard), filter var(--mo-quick) var(--ease-standard); animation: mo-scale-in var(--mo-base) var(--ease-out) backwards; animation-delay: calc(380ms + var(--i, 0) * var(--mo-stagger)); }
/* the mask draws itself source→destination, revealing the real (dashed/solid)
   path progressively — no separate fade on .canvas__path. At rest it's fully
   drawn (dashoffset 0); the page-load draw runs once (.is-revealing) and hover
   re-paints the corridor (.is-emph). */
.canvas__path-mask { fill: none; stroke-dasharray: 1; }
.canvas__chart.is-revealing .canvas__path-mask { animation: mo-draw var(--mo-draw) var(--ease-out) backwards; animation-delay: calc(780ms + var(--i, 0) * 30ms); }
.canvas__path-mask.is-emph { animation: mo-draw var(--mo-draw) var(--ease-standard); }
.canvas__marker-pop { transform-box: fill-box; transform-origin: center; animation: mo-pop var(--mo-quick) var(--ease-pop) backwards; animation-delay: calc(1450ms + var(--i, 0) * 30ms); }

/* reduced-motion is handled globally in motion.css */

