/* Material-led illustrations share a finite, visibility-aware animation clock. */
.workflow { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 60px; align-items: center; --step-progress: 0; }
.workflow-theatre { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #151815; }
.workflow-scene { height: 450px; position: relative; isolation: isolate; overflow: hidden; }
.workflow-scene-top { position: absolute; z-index: 2; top: 25px; left: 28px; right: 28px; display: flex; justify-content: space-between; gap: 15px; color: #a4ad9e; font-size: 11px; }
.workflow-scene-top > span:last-child { color: #788575; }
.workflow-ambient { position: absolute; inset: 0; background: radial-gradient(ellipse at 47% 46%, #b3c3950e, transparent 65%); }
/* Two independent trade taxes converge into a single native HYPE budget. */
.collect-scene { position: absolute; inset: 57px 0 83px; display: none; }
.workflow[data-stage="collect"] .collect-scene { display: block; }
.collect-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.collect-connections path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.collect-track { stroke: #73846555; stroke-width: 1.2; }
.collect-current { stroke: #c2d39e; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--trace-progress, 1)); filter: drop-shadow(0 0 3px #c1d99640); }
.collect-source { position: absolute; top: 6%; width: 31%; height: 28%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #75826980; border-radius: 18px; background: linear-gradient(140deg, #41483e, #242b23 62%, #1c221c); box-shadow: inset 0 1px 0 #e1ead322, inset 0 0 0 5px #141a1429, 0 5px 0 #0c110c, 0 6px 0 #7b8d5b42, 0 15px 20px #0005; }
.collect-buy { left: 8.5%; }
.collect-sell { right: 8.5%; }
.collect-source > span { color: #aebba3; font-size: 10px; letter-spacing: .04em; }
.collect-source > strong { color: #e1edc9; font-size: 36px; line-height: 1; font-weight: 450; letter-spacing: -.06em; font-variant-numeric: lining-nums; }
.collect-source > strong > span { margin-left: 3px; font-size: .48em; letter-spacing: -.025em; color: #bfcea7; }
.collect-source > i { position: absolute; width: 6px; height: 6px; left: calc(50% - 3px); bottom: -7px; z-index: 2; border-radius: 50%; background: #b5c891; box-shadow: 0 0 0 4px #b6ca8e10, 0 0 calc(5px + var(--source-charge, 0) * 12px) #c3dc8d88; }
.collect-packets { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.collect-packets > i { position: absolute; width: 11px; height: 11px; border-radius: 3px; opacity: 0; background: linear-gradient(140deg, #f1f7d8, #b8cd8c 68%, #8ca364); border: 1px solid #e4efc4bb; box-shadow: 0 2px 0 #667e42, 0 0 15px #bdd48d48; transform: translate(-50%, -50%) scale(var(--packet-scale, 1)) rotate(45deg); will-change: left, top, transform; }
.collect-vault { position: absolute; left: 27%; top: 58%; width: 46%; height: 30%; border-radius: 21px; border: 1px solid #a8bb876e; background: linear-gradient(135deg, #667358, #38462e 48%, #26331f); box-shadow: inset 0 1px 0 #e6f0cf55, inset 0 0 0 5px #1b26175c, 0 7px 0 #0c130b, 0 8px 0 #91a66d4f, 0 20px 25px #0006; }
.collect-vault-interior { position: absolute; inset: 10px 12px; display: flex; flex-direction: column; justify-content: center; padding: 0 11px 8px; border: 1px solid #8da66d42; border-radius: 12px; background: linear-gradient(140deg, #172113, #24301d); box-shadow: inset 0 2px 4px #080e0877; }
.collect-vault-interior > span { color: #afbe9d; font-size: 10px; }
.collect-vault-interior > strong { margin-top: 5px; color: #e4edce; font-size: 22px; line-height: 1; font-weight: 450; letter-spacing: -.04em; }
.collect-reserve-bar { position: absolute; left: 11px; right: 11px; bottom: 8px; height: 3px; overflow: hidden; border-radius: 4px; background: #07100688; }
.collect-reserve-bar > i { display: block; height: 100%; border-radius: inherit; background: #c3d795; box-shadow: 0 0 8px #c5d99b55; transform: scaleX(var(--collect-fill, 1)); transform-origin: left center; }
.collect-vault-port { position: absolute; width: 22px; height: 5px; left: calc(50% - 11px); top: -4px; z-index: 2; border: 1px solid #8ba46b; border-radius: 4px; background: #101b0d; box-shadow: 0 0 calc(var(--vault-charge, 0) * 16px) #cee3a88c; }
.collect-vault-light { position: absolute; right: 24px; top: 24px; width: 5px; height: 5px; border-radius: 50%; background: #7b8e5e; }
.collect-scene[data-funded="true"] .collect-vault-light, .workflow:not(.workflow-enhanced) .collect-vault-light { background: #d4e9ab; box-shadow: 0 0 0 3px #d4e9ab0d, 0 0 12px #c5dc9366; }
/* One native budget separates into two equal purchase allocations. */
.acquire-scene { position: absolute; inset: 57px 0 83px; display: none; }
.workflow[data-stage="acquire"] .acquire-scene { display: block; }
.acquire-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.acquire-connections path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.acquire-track { stroke: #71826740; stroke-width: 1.2; }
.acquire-current { stroke: #c7db9d; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--purchase-trace, 1)); filter: drop-shadow(0 0 4px #c5df963d); }
.acquire-budget { position: absolute; left: 27%; top: 4%; width: 46%; height: 29%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #b2c88b80; border-radius: 18px; background: linear-gradient(140deg, #657753, #37482a 52%, #26341d); box-shadow: inset 0 1px 0 #e7f3c851, inset 0 0 0 5px #121c0c39, 0 6px 0 #0c140a, 0 7px 0 #829d5e77, 0 20px 26px #0005; transform: translateY(calc(var(--budget-pulse, 0) * -3px)); }
.acquire-budget > span { color: #c4d2ad; font-size: 10px; }
.acquire-budget > strong { margin-top: 4px; color: #ebf4d8; font-weight: 450; font-size: 25px; letter-spacing: -.05em; line-height: 1.15; }
.acquire-split { width: 46%; height: 3px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: 11px; }
.acquire-split > i { border-radius: 2px; background: #a5b98b44; box-shadow: inset 0 1px 0 #dcebc627; }
.acquire-split > i[data-dispatched="true"], .workflow:not(.workflow-enhanced) .acquire-split > i { background: #dcebbb; box-shadow: 0 0 8px #d2e9a340; }
.acquire-outlet { position: absolute; z-index: 2; width: 22px; height: 5px; left: calc(50% - 11px); bottom: -4px; background: #15200e; border: 1px solid #a2b881; border-radius: 4px; box-shadow: 0 0 calc(var(--budget-pulse, 0) * 12px) #d3e9a888; }
.acquire-packets { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.acquire-packets > i { position: absolute; width: 10px; height: 10px; opacity: 0; border: 1px solid #e8f2d0cc; border-radius: 3px; background: linear-gradient(140deg, #f0f8d9, #b5d386 70%, #8fa766); box-shadow: 0 2px 0 #6a8346, 0 0 17px #c3de966b; transform: translate(-50%, -50%) rotate(45deg) scale(var(--allocation-scale, 1)); will-change: left, top, transform; }
.acquire-asset { position: absolute; left: 15%; top: 59%; width: 30%; height: 35%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #6e7d625e; border-radius: 15px; background: linear-gradient(145deg, #333c2e, #20271d 67%, #1c211a); box-shadow: inset 0 1px 0 #d2dfb91c, inset 0 0 0 4px #141a1335, 0 5px 0 #0c120b, 0 6px 0 #62744e38, 0 13px 18px #0005; }
.acquire-asset[data-acquire-asset="1"] { left: 55%; }
.acquire-asset::before { content: ''; position: absolute; left: 50%; top: -4px; transform: translateX(-50%); width: 14px; height: 4px; border-radius: 3px; background: #121b0e; border: 1px solid #8197666e; }
.acquire-token { width: 41px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 1px solid #c1d5a36b; background: #171d18; box-shadow: inset 0 0 0 3px #c6d5b10b, 0 3px 0 #0b1109, 0 4px 0 #728b5155, 0 8px 10px #0006; opacity: calc(.2 + var(--purchase-reveal, 1) * .8); transform: translateY(calc((1 - var(--purchase-reveal, 1)) * 7px)) scale(calc(.82 + var(--purchase-reveal, 1) * .18)); }
.acquire-token img { width: 78%; height: 70%; object-fit: contain; }
.acquire-asset[data-brand="nvda"] .acquire-token { background: #fff; }
.acquire-asset[data-brand="nvda"] .acquire-token img { width: 100%; height: 100%; }
.acquire-asset[data-brand="ant"] .acquire-token { background: #f4f0e8; }
.acquire-asset[data-brand="ant"] .acquire-token img { width: 70%; height: 70%; }
.acquire-asset > strong { margin-top: 9px; color: #d2dbc5; font-size: 11px; font-weight: 450; letter-spacing: -.015em; }
.acquire-weight { margin-top: 3px; font-size: 10px; color: #91a17e; }
.acquire-order { position: absolute; bottom: -23px; left: 50%; display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 9px; color: #cfe3ac; opacity: var(--purchase-reveal, 1); transform: translate(-50%, calc((1 - var(--purchase-reveal, 1)) * 4px)); }
.acquire-order > i { width: 7px; height: 4px; margin-bottom: 3px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.acquire-asset[data-purchased="true"] { border-color: #a4bd7a88; background: linear-gradient(145deg, #3b4732, #232e1d 67%, #1b2515); }
.workflow-caption { position: absolute; bottom: 27px; left: 28px; right: 28px; }
.workflow-caption > span { display: block; font-size: 18px; letter-spacing: -.025em; }
.workflow-caption small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.workflow-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); min-height: 57px; padding: 12px 22px; }
.workflow-toolbar > span { font-size: 10px; color: var(--muted); line-height: 1.6; }
.workflow-toolbar .text-button { font-size: 11px; white-space: nowrap; min-height: 32px; }
.workflow-toolbar button:disabled { text-decoration: none; color: var(--muted); cursor: default; }
.workflow-steps { display: grid; }
.workflow-step { position: relative; display: block; width: 100%; padding: 21px 0 23px; background: transparent; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); transition: color .4s; }
.workflow-step:first-child { padding-top: 8px; }
.workflow-step:last-child { border: 0; }
.workflow-step:disabled { cursor: default; }
.workflow-step:not(:disabled):hover { color: var(--ink); }
.workflow-step.is-active { color: var(--ink); }
.workflow-step-title { display: block; font-size: 26px; letter-spacing: -.025em; font-weight: 400; }
.workflow-step-copy { display: block; margin-top: 9px; font-size: 13px; line-height: 1.7; max-width: 340px; color: #8e998e; }
.workflow-step.is-active .workflow-step-copy { color: #c4cdbb; }
.workflow-step-line { position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; overflow: hidden; }
.workflow-step-line::after { content: ''; display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.workflow-enhanced .workflow-step.is-active .workflow-step-line::after { transform: scaleX(var(--step-progress)); }
.workflow-assets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 29px 0; margin: 28px 0 0; }
.workflow-assets > span { display: flex; justify-content: space-between; gap: 15px; color: #c5cebe; font-size: 12px; }
.workflow-assets small { color: var(--muted); font-size: 12px; }
.workflow[data-running="false"] *, .workflow[data-running="false"] *::before, .workflow[data-running="false"] *::after { animation-play-state: paused !important; }
/* Confirmed local reserves supply two reward tokens to each wallet. */
.delivery-scene { position: absolute; inset: 57px 0 83px; display: none; }
.workflow[data-stage="deliver"] .delivery-scene { display: block; }
.delivery-token, .reserve-tokens > span, .wallet-asset { display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #181c1b; border: 1px solid #7d8d715e; box-shadow: inset 0 0 0 3px #c6d2b308, 0 2px 0 #0c100c, 0 3px 0 #5e6e4d, 0 7px 9px #0007; }
.delivery-token img, .reserve-tokens img, .wallet-asset img { width: 78%; height: 70%; object-fit: contain; }
/* Six individual flights: both assets enter each of three wallets. */
.delivery-scene [data-brand="nvda"] { background: #fff; }
.delivery-scene [data-brand="nvda"] img { width: 100%; height: 100%; }
.delivery-scene [data-brand="ant"] { background: #f4f0e8; }
.delivery-scene [data-brand="ant"] img { width: 70%; height: 70%; }
.delivery-reserve { position: absolute; width: 40%; height: 24%; left: 30%; top: 11%; border: 1px solid #94a77b54; border-radius: 17px; background: linear-gradient(135deg, #3b4735, #20291c 75%); box-shadow: inset 0 1px 0 #c8d6ac22, 0 5px 0 #11190e, 0 6px 0 #6e81512e, 0 10px 16px #0005; }
.reserve-tokens { position: absolute; inset: 0 25%; display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; justify-items: center; }
.reserve-tokens > span { width: min(75%, 42px); aspect-ratio: 1; }
.delivery-reserve > span { position: absolute; left: 50%; top: -25px; transform: translateX(-50%); font-size: 10px; color: #bec9ad; white-space: nowrap; }
.delivery-connections { position: absolute; inset: 0; pointer-events: none; }
.delivery-connections svg { width: 100%; height: 100%; overflow: visible; }
.delivery-connections path { fill: none; stroke: #7d946044; stroke-width: 1; vector-effect: non-scaling-stroke; }
.reward-wallet { position: absolute; width: 26%; height: 37%; top: 47%; left: 18%; transform: translateX(-50%); }
.reward-wallet[data-reward-wallet="1"] { left: 50%; }
.reward-wallet[data-reward-wallet="2"] { left: 82%; }
.wallet-back { position: absolute; inset: 0; border: 1px solid #7c8c6a99; border-radius: 15px; background: linear-gradient(145deg, #46513e, #242c20 65%); box-shadow: inset 0 1px 1px #c2d5ae24, 0 5px 0 #11190d, 0 6px 0 #768c5744, 0 13px 19px #0007; }
.wallet-back::before { content: ''; position: absolute; left: 10px; right: 10px; top: -4px; height: 10px; border: 1px solid #758862; border-radius: 6px 6px 2px 2px; background: #1d291a; transform: skewX(-16deg); }
.wallet-interior { position: absolute; inset: 8% 18% 9%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 5px; background: #0a100a66; border: 1px solid #7a8b5f22; border-radius: 8px; }
.wallet-asset { width: min(31px, 100%); aspect-ratio: 1; opacity: 0; transform: scale(.55); transition: opacity .18s, transform .24s var(--ease); box-shadow: 0 2px 0 #071007, 0 3px 4px #0005; }
.wallet-asset.is-received { opacity: 1; transform: scale(1); }
.wallet-front { position: absolute; right: -3px; top: 43%; width: 19%; height: 26%; border: 1px solid #8b9c754f; border-radius: 5px 2px 2px 5px; background: linear-gradient(130deg, #526043, #2c3823); box-shadow: 0 3px 3px #0005; }
.wallet-front i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #b4c591; box-shadow: inset 0 1px 1px #e0eec1aa; margin: 8px auto; }
.wallet-settled i { width: 9px; height: 5px; margin-bottom: 3px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.wallet-settled { position: absolute; left: 50%; bottom: -29px; transform: translate(-50%, 4px); display: flex; align-items: center; gap: 6px; color: #c6dda6; white-space: nowrap; font-size: 9px; opacity: 0; transition: opacity .25s, transform .3s; }
.reward-wallet.is-received .wallet-settled { opacity: 1; transform: translate(-50%, 0); }
.reward-wallet.is-received .wallet-back { border-color: #a4bf7c; }
.delivery-flight { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.delivery-token { position: absolute; width: min(7.2%, 43px); aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%) scale(var(--coin-scale, 1)); will-change: left, top, transform; }
@media (max-width: 1150px) {
  .workflow { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 38px; }
  .workflow-scene { height: 430px; }
  .workflow-step-title { font-size: 24px; }
  .workflow-step-copy { font-size: 12px; }
  .collect-source > strong { font-size: 31px; }
  .collect-vault-interior { inset: 8px 10px; padding-left: 8px; }
  .collect-vault-interior > span { font-size: 9px; }
  .collect-vault-interior > strong { font-size: 20px; }
  .collect-vault-light { top: 20px; right: 21px; }
}
@media (max-width: 900px) {
  .workflow { gap: 28px; grid-template-columns: minmax(0, 1.15fr) minmax(235px, 1fr); }
  .workflow-scene { height: 405px; }
  .workflow-scene-top { left: 20px; right: 20px; font-size: 10px; }
  .workflow-caption { left: 20px; right: 20px; }
  .workflow-caption > span { font-size: 16px; }
  .workflow-toolbar { padding-left: 18px; padding-right: 18px; }
  .workflow-toolbar > span { max-width: 120px; }
  .workflow-step { padding: 18px 0 20px; }
  .workflow-step-title { font-size: 23px; }
  .workflow-step-copy { font-size: 12px; }
  .workflow-assets { gap: 20px; }
  .workflow-assets > span, .workflow-assets small { font-size: 11px; }
}
@media (max-width: 640px) {
  .workflow { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .workflow-scene { height: 365px; }
  .workflow-scene-top { top: 20px; }
  .workflow-caption { bottom: 21px; }
  .workflow-caption small { font-size: 10px; }
  .collect-scene, .acquire-scene, .delivery-scene { inset: 47px 0 75px; }
  .acquire-budget { left: 25%; width: 50%; border-radius: 15px; }
  .acquire-budget > span { font-size: 9px; }
  .acquire-budget > strong { font-size: 23px; }
  .acquire-split { margin-top: 8px; }
  .acquire-asset { border-radius: 11px; }
  .acquire-token { width: 32px; }
  .acquire-asset > strong { margin-top: 8px; font-size: 9px; }
  .acquire-weight { font-size: 9px; }
  .acquire-order { bottom: -21px; font-size: 8px; gap: 4px; }
  .acquire-packets > i { width: 8px; height: 8px; }
  .collect-source { border-radius: 15px; gap: 4px; }
  .collect-source > span { font-size: 9px; }
  .collect-source > strong { font-size: 29px; }
  .collect-vault { border-radius: 17px; }
  .collect-vault-interior { inset: 7px 9px; padding-top: 0; padding-bottom: 7px; border-radius: 10px; }
  .collect-vault-interior > strong { margin-top: 4px; font-size: 18px; }
  .collect-vault-light { top: 18px; right: 18px; width: 4px; height: 4px; }
  .collect-packets > i { width: 9px; height: 9px; }
  .workflow-toolbar { min-height: 56px; padding: 10px 18px; }
  .workflow-toolbar > span { max-width: none; font-size: 9px; }
  .workflow-toolbar .text-button { font-size: 10px; }
  .workflow-steps { grid-template-columns: minmax(0, 1fr); gap: 0 22px; }
  .workflow-step, .workflow-step:first-child { padding: 16px 0 19px; border-bottom: 1px solid var(--line); }
  .workflow-step-title { font-size: 21px; }
  .workflow-step-copy { font-size: 11px; margin-top: 7px; }
  /* The controls precede the theatre so selecting a stage keeps its motion in view. */
  .workflow-enhanced .workflow-steps { order: -1; position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; padding-bottom: 57px; }
  .workflow-enhanced .workflow-step, .workflow-enhanced .workflow-step:first-child { position: static; align-self: start; min-width: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
  .workflow-enhanced .workflow-step.is-active { border-bottom-color: var(--accent); }
  .workflow-enhanced .workflow-step-title { font-size: 15px; line-height: 24px; text-align: center; }
  .workflow-enhanced .workflow-step-copy { display: none; }
  .workflow-enhanced .workflow-step.is-active .workflow-step-copy { display: block; position: absolute; top: 50px; left: 0; right: 0; max-width: none; margin: 0; font-size: 12px; line-height: 1.65; pointer-events: none; }
  .workflow-enhanced .workflow-step-line { display: none; }
  .workflow-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 25px 0; gap: 19px 28px; margin-top: 10px; }
}
@media (max-width: 365px) { .workflow-step-copy { font-size: 10px; } .acquire-asset > strong { font-size: 8px; } .acquire-order { gap: 3px; font-size: 7px; } }
@media (prefers-reduced-motion: reduce) {
  .workflow *, .workflow *::before, .workflow *::after { animation: none !important; transition: none !important; }
}
