/* yuzuy hero animation (T8). Scoped to .yz-hero-flow. Colours follow the theme presets,
   so inside the black frame the dark values apply. */
.yz-hero-flow {
  --bg: var(--wp--preset--color--bg); --surface: var(--wp--preset--color--surface); --ink: var(--wp--preset--color--ink);
  --muted: var(--wp--preset--color--muted); --line: var(--wp--preset--color--line);
  --yellow: #FBEE66; --gold: #F7CF42; --gold-ink: #17170F; --alert: var(--wp--preset--color--alert);
  --q-cyan: var(--wp--preset--color--qumulo-cyan); --q-deep: var(--wp--preset--color--qumulo-deepblue);
  --sans: var(--wp--preset--font-family--sans); --qfont: var(--wp--preset--font-family--qumulo); --mono: var(--wp--preset--font-family--mono);
  --ease: cubic-bezier(.2, .7, .2, 1);
  position: relative; isolation: isolate; overflow: hidden; margin-top: 8px;
}
.yz-hero-flow .field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.yz-hero-flow .stage { height: clamp(430px, calc(100svh - 470px), 600px); }
.yz-hero-flow ul.features { padding: 0; }
/* The yuzuy hub card stays black with the white wordmark, in both themes */
.yz-hero-flow .hubcard { fill: #000000 !important; stroke: var(--line); stroke-width: 1.25; }
.yz-hero-flow .hubcap { fill: #F3F3EA !important; }
.yz-hero-flow .seg { fill: #F3F3EA; }
.yz-hero-flow .led { fill: #F3F3EA; }
.yz-hero-flow .wm-on-paper { display: none !important; }
.yz-hero-flow .wm-on-ink { display: inline !important; }
.yz-hero-flow .sr-summary { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .yz-hero-flow .stage { height: auto; } }

/* ---------- stage ---------- */
.yz-hero-flow .stage { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: clamp(14px, 3vh, 30px); padding-bottom: clamp(12px, 2.6vh, 26px); }
.yz-hero-flow .features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.yz-hero-flow .features button { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 15px/20px var(--sans); cursor: pointer; transition: border-color .25s, color .25s; }
.yz-hero-flow .features button:hover { color: var(--ink); border-color: var(--muted); }
.yz-hero-flow .features button i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--line); transition: background .3s, box-shadow .3s; }
.yz-hero-flow .features button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.yz-hero-flow .features button[aria-pressed="true"] i { background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }

.yz-hero-flow #diagram { position: relative; flex: 1; min-height: 260px; width: 100%; max-width: 1060px; }
.yz-hero-flow #diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

.yz-hero-flow .status { box-sizing: border-box; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 16px; width: 100%; max-width: 820px; min-height: 92px; margin: 0 auto; padding: 11px 18px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.yz-hero-flow .status-k { flex: none; font: 400 12.5px/20px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 9.5ch; }
.yz-hero-flow #step { font-size: 15.5px; line-height: 1.45; min-width: 0; }
.yz-hero-flow .status.in #step { animation: stepin .5s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(4px); } }
.yz-hero-flow .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.yz-hero-flow .prog i { display: block; height: 100%; background: var(--ink); opacity: .28; transform-origin: 0 50%; transform: scaleX(0); }
.yz-hero-flow .paused .status-k::after { content: " · paused"; }
/* ---------- schematic ---------- */


.yz-hero-flow svg text { font-family: var(--sans); }
.yz-hero-flow .el { transform-box: fill-box; transform-origin: 0 0; }
.yz-hero-flow .cardbox { fill: var(--surface); stroke: var(--line); stroke-width: 1.25; transition: stroke .4s, stroke-width .4s; }
.yz-hero-flow .ctitle { font-size: 14px; font-weight: 600; fill: var(--ink); }
.yz-hero-flow .csub { font: 400 12px var(--mono); fill: var(--muted); transition: fill .3s; }
/* Qumulo-owned objects: Nunito */


.yz-hero-flow .cluster text { font-family: var(--qfont); }
.yz-hero-flow .cluster .ctitle { font-size: 15px; font-weight: 700; transition: opacity .4s; }
.yz-hero-flow .dir { font-size: 13px; fill: var(--ink); transition: opacity .4s; }
.yz-hero-flow .rowbg { fill: var(--bg); opacity: 0; transition: opacity .4s; }
.yz-hero-flow .row.evton .rowbg { opacity: 1; }
.yz-hero-flow .evt { opacity: 0; transition: opacity .35s; }
.yz-hero-flow .row.evton .evt { opacity: 1; }
.yz-hero-flow .evt circle { fill: var(--gold); }
.yz-hero-flow .evt text { font-size: 12px; font-weight: 600; fill: var(--ink); }
.yz-hero-flow .chip rect { transition: fill .45s, stroke .45s; stroke-width: 1.25; }
.yz-hero-flow .chip text { font-size: 12.5px; font-weight: 700; text-anchor: middle; transition: fill .45s; }
.yz-hero-flow .row[data-s="primary"] .chip rect, .yz-hero-flow .row[data-s="source"] .chip rect { fill: var(--ink); stroke: var(--ink); }
.yz-hero-flow .row[data-s="primary"] .chip text, .yz-hero-flow .row[data-s="source"] .chip text { fill: var(--bg); }
.yz-hero-flow .row[data-s="secondary"] .chip rect, .yz-hero-flow .row[data-s="target"] .chip rect { fill: var(--surface); stroke: var(--muted); }
.yz-hero-flow .row[data-s="secondary"] .chip text, .yz-hero-flow .row[data-s="target"] .chip text { fill: var(--muted); }
.yz-hero-flow .row[data-s="protected"] .chip rect { fill: var(--surface); stroke: var(--ink); }
.yz-hero-flow .row[data-s="protected"] .chip text { fill: var(--ink); }
.yz-hero-flow .row[data-s="offline"] .chip rect { fill: var(--surface); stroke: var(--alert); stroke-dasharray: 4 3; }
.yz-hero-flow .row[data-s="offline"] .chip text { fill: var(--alert); }
.yz-hero-flow .row .chip.gold rect { fill: var(--gold); stroke: var(--gold); }
.yz-hero-flow .row .chip.gold text { fill: var(--gold-ink); }
.yz-hero-flow .row[data-s="offline"] .dir { opacity: .4; }
.yz-hero-flow .down .cardbox { stroke: var(--alert); stroke-dasharray: 6 5; }
.yz-hero-flow .down .ctitle { opacity: .5; }
.yz-hero-flow .halo { fill: none; stroke: var(--gold); stroke-width: 0; opacity: 0; }
.yz-hero-flow .cluster.hl .cardbox { stroke: var(--ink); stroke-width: 1.75; }
.yz-hero-flow .cluster.hl .halo { animation: halo 1.3s var(--ease) 2; }
@keyframes halo { 0% { stroke-width: 2; opacity: 1; } 100% { stroke-width: 26; opacity: 0; } }
/* yuzuy objects */


.yz-hero-flow .box[data-s="active"] .cardbox, .yz-hero-flow .box[data-s="scan"] .cardbox { stroke: var(--ink); }
.yz-hero-flow .box[data-s="scan"] .csub, .yz-hero-flow .box[data-s="ok"] .csub, .yz-hero-flow .box[data-s="active"] .csub { fill: var(--ink); }
.yz-hero-flow .box[data-s="find"] .cardbox { stroke: var(--alert); }
.yz-hero-flow .box[data-s="find"] .csub { fill: var(--alert); }
.yz-hero-flow .trk { fill: var(--line); opacity: 0; transition: opacity .3s; }
.yz-hero-flow .bar { fill: var(--ink); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.yz-hero-flow .box[data-s="scan"] .trk { opacity: 1; }
.yz-hero-flow .box[data-s="find"] .bar { fill: var(--alert); }
.yz-hero-flow .hubcard { fill: var(--ink); }
.yz-hero-flow .hubcap { font: 400 11.5px var(--mono); fill: var(--bg); opacity: .72; }
.yz-hero-flow .seg { fill: var(--bg); opacity: .2; transition: fill .3s, opacity .3s; }
.yz-hero-flow .seg.on { fill: var(--gold); opacity: 1; }
.yz-hero-flow .led { fill: var(--bg); opacity: .25; transition: fill .3s, opacity .3s; }
.yz-hero-flow .hub.busy .led { fill: var(--gold); opacity: 1; animation: led 1.2s ease-in-out infinite; }
@keyframes led { 50% { opacity: .45; } }
/* lines */

.yz-hero-flow .flow { fill: none; stroke: var(--line); stroke-width: 1.25; stroke-linecap: round; transition: stroke .45s, stroke-width .45s, opacity .4s; }
.yz-hero-flow .flow.on { stroke: var(--gold); stroke-width: 2; }
.yz-hero-flow .access { fill: none; stroke: var(--muted); stroke-width: 1.25; transition: stroke .4s, opacity .4s, stroke-width .4s; }
.yz-hero-flow .access.strong { stroke: var(--ink); stroke-width: 1.75; }
.yz-hero-flow .dim { opacity: .18; }
.yz-hero-flow .pulse { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.yz-hero-flow .repl { fill: none; stroke: var(--q-cyan); stroke-width: 1.5; stroke-dasharray: 6 5; animation: dash 2.2s linear infinite; transition: opacity .4s; }
.yz-hero-flow .repl.dim { animation-play-state: paused; opacity: .25; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.yz-hero-flow .arrhead { fill: var(--q-cyan); }
.yz-hero-flow .repllabel { font: 700 13px var(--qfont); fill: var(--q-deep); text-anchor: middle; }
.yz-hero-flow .repltag { font: 600 11.5px var(--qfont); fill: var(--q-deep); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
/* movers and effects */


.yz-hero-flow .file { fill: var(--gold); stroke: var(--ink); stroke-width: 1.25; }
.yz-hero-flow .dot { fill: var(--ink); }
.yz-hero-flow .iptag { fill: var(--gold); stroke: var(--ink); stroke-width: 1.25; }
.yz-hero-flow .iptext { font: 700 10px var(--mono); fill: var(--gold-ink); text-anchor: middle; }
.yz-hero-flow .tagbg { fill: var(--surface); stroke: var(--line); }
.yz-hero-flow .tag { font: 400 11px var(--mono); fill: var(--ink); }
.yz-hero-flow .ring { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.yz-hero-flow .ring.alert { stroke: var(--alert); }
.yz-hero-flow .ring.ink { stroke: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .yz-hero-flow .repl, .yz-hero-flow .hub.busy .led, .yz-hero-flow .cluster.hl .halo { animation: none; }
  .yz-hero-flow .status.in #step { animation: none; }
}
@media (max-width: 720px) {
  .yz-hero-flow .features { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding: 2px; }
  .yz-hero-flow .features::-webkit-scrollbar { display: none; }
  .yz-hero-flow .features button { font-size: 14px; padding: 7px 13px; white-space: nowrap; }
  .yz-hero-flow #diagram { flex: none; min-height: 0; }
  .yz-hero-flow #diagram svg { position: static; height: auto; }
  .yz-hero-flow #diagram svg.leaving { position: absolute; top: 0; left: 0; }
  .yz-hero-flow .status { flex-direction: column; gap: 2px; min-height: 5.6em; }
  .yz-hero-flow #step { font-size: 15px; }
}


/* 0.3.16: product-page scenes (attribute "scene") */
.yz-hero-flow .row { transition: opacity .45s; }
.yz-hero-flow .row[data-s="live"] .chip rect { fill: var(--ink); stroke: var(--ink); }
.yz-hero-flow .row[data-s="live"] .chip text { fill: var(--bg); }
.yz-hero-flow .row[data-s="ref"] .chip rect, .yz-hero-flow .row[data-s="new"] .chip rect { fill: var(--surface); stroke: var(--ink); }
.yz-hero-flow .row[data-s="ref"] .chip text, .yz-hero-flow .row[data-s="new"] .chip text { fill: var(--ink); }
.yz-hero-flow .row[data-s="released"] .chip rect { fill: var(--surface); stroke: var(--muted); stroke-dasharray: 4 3; }
.yz-hero-flow .row[data-s="released"] .chip text { fill: var(--muted); }
.yz-hero-flow .row[data-s="released"] .dir { opacity: .4; }
.yz-hero-flow .row[data-s="none"] { opacity: 0; }
.yz-hero-flow .hubsub { font: 600 12.5px var(--sans); fill: #F3F3EA; }
.yz-hero-flow[data-scene] .stage { padding-top: 0; }
