/* =========================================================================
   INFOGRAPHICS — animated diagram sections (flow, layers, hub, cycle,
   converge, matrix, shift, metrics). Markup: build/infographics.js.
   js/infographics.js adds .ig-js to <html> and .is-in to a panel when it
   scrolls into view; everything is visible without JS and static under
   prefers-reduced-motion.
   ========================================================================= */
.ig {
  --ig-ink: var(--color-title); --ig-text: var(--color-text); --ig-line: #cdd7dc; --ig-soft: #e9f7fd; --ig-card: #f4f8f9; --ig-accent: var(--color-primary-strong);
  position: relative; overflow: hidden; padding: 64px 56px;
  background: var(--color-white); border: 1px solid var(--color-card-grey); border-radius: var(--r-lg); box-shadow: var(--shadow-cta);
}
.ig.is-dark {
  --ig-ink: #fff; --ig-text: #b7c5cc; --ig-line: #2b3b44; --ig-soft: #0e2a38; --ig-card: #141d22; --ig-accent: #7fd6f9;
  background: radial-gradient(120% 130% at 50% -10%, #123344 0, #0c0c0c 62%); border-color: #1b2a32;
}
.ig::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 100% 0, #01aef214, #0000 70%), radial-gradient(50% 45% at 0 100%, #2587b412, #0000 70%); }
.ig > * { position: relative; }
.ig h3 { margin: 0 0 6px; font-size: 18px; font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: -0.01em; color: var(--ig-ink); }
.ig p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ig-text); }
.ig-note { max-width: 820px; margin: 22px auto 0; text-align: center; font-size: var(--fs-p-xs); color: var(--color-text); }
@media screen and (max-width: 991px) { .ig { padding: 48px 32px; } }
@media screen and (max-width: 600px) { .ig { padding: 36px 20px; } .ig h3 { font-size: 17px; } }

.ig-orb { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: linear-gradient(140deg, #29c1ff, var(--color-primary) 45%, var(--color-primary-strong)); box-shadow: 0 14px 26px #0189bf47, inset 0 0 14px #ffffff73; }
.ig-orb svg { width: 27px; height: 27px; }
.ig-orb b { font-size: 21px; font-weight: var(--fw-semibold); }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ig-chips li { padding: 4px 11px; border: 1px solid var(--ig-line); border-radius: 999px; background: var(--ig-soft); color: var(--ig-accent); font-size: 12.5px; font-weight: var(--fw-medium); line-height: 1.4; }

/* ---- shared: picture + synced legend ---------------------------------- */
.ig-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ig-duo.is-stack { grid-template-columns: 1fr; gap: 40px; }
.ig-duo.is-stack .ig-art { max-width: 540px; margin-inline: auto; width: 100%; }
.ig-duo.is-stack .ig-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ig-art { min-width: 0; }
.ig-legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ig-legend-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 16px; border: 1px solid #0000; border-radius: 18px; cursor: pointer; outline: none; transition: background-color .35s, border-color .35s, transform .35s, box-shadow .35s; }
.ig-legend-item:focus-visible { border-color: var(--color-primary); }
.ig-legend-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ig-soft); color: var(--ig-accent); transition: background-color .35s, color .35s, box-shadow .35s; }
.ig-legend-mark svg { width: 22px; height: 22px; }
.ig-legend-mark b { font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: .02em; }
.ig-legend-item.is-active { background: var(--ig-card); border-color: var(--ig-line); transform: translateX(6px); }
.ig-legend-item.is-active .ig-legend-mark { background: linear-gradient(140deg, #29c1ff, var(--color-primary-strong)); color: #fff; box-shadow: 0 10px 20px #0189bf40; }
@media screen and (max-width: 991px) { .ig-duo { grid-template-columns: 1fr; gap: 36px; } .ig-art { max-width: 520px; margin-inline: auto; width: 100%; } .ig-legend-item.is-active { transform: none; } }
@media screen and (max-width: 700px) { .ig-duo.is-stack .ig-legend { grid-template-columns: 1fr; } }

/* ---- flow -------------------------------------------------------------- */
.ig-flow-track { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 48px 28px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ig-flow-node { position: relative; display: flex; flex-flow: column; align-items: center; text-align: center; }
.ig-flow-node .ig-orb { position: relative; z-index: 1; margin-bottom: 20px; }
.ig-step { margin-bottom: 8px; font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .12em; text-transform: uppercase; color: var(--ig-accent); }
.ig-link { position: absolute; top: 31px; left: calc(50% + 42px); width: calc(100% + 28px - 84px); height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--ig-line) 0 6px, #0000 6px 12px); transform-origin: 0 50%; }
.ig-link::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px #01aef233, 0 0 14px #01aef2; animation: ig-run-x 2.6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i) * .35s); }
.ig-flow-node.is-row-end .ig-link { display: none; }
@keyframes ig-run-x { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes ig-run-y { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media screen and (max-width: 991px) {
  .ig-flow-track { grid-template-columns: 1fr; gap: 28px; max-width: 620px; margin-inline: auto; }
  .ig-flow-node { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; text-align: left; align-items: start; }
  .ig-flow-node .ig-orb { grid-row: 1 / span 3; margin: 0; }
  .ig-flow-node > :not(.ig-orb):not(.ig-link) { grid-column: 2; }
  .ig-step { margin: 4px 0 4px; }
  .ig-link, .ig-flow-node.is-row-end .ig-link { display: block; top: 70px; left: 31px; width: 2px; height: calc(100% - 64px + 16px); background: repeating-linear-gradient(180deg, var(--ig-line) 0 6px, #0000 6px 12px); transform-origin: 50% 0; }
  .ig-flow-node.is-last .ig-link { display: none; }
  .ig-link::after { top: 0; left: -4px; margin: -5px 0 0; animation-name: ig-run-y; }
}

/* ---- layers ------------------------------------------------------------ */
.ig-layers-art { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; overflow: visible; filter: drop-shadow(0 30px 34px #0c0c0c24); }
.ig-slab { cursor: pointer; }
.ig-slab-body { transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.ig-slab text { fill: #fff; font-family: var(--font-primary); font-weight: 600; letter-spacing: .01em; pointer-events: none; paint-order: stroke; stroke: #0c0c0c33; stroke-width: 3px; }
.ig[data-ig-sync].has-active .ig-slab:not(.is-active) .ig-slab-body { opacity: .62; }
.ig-slab.is-active .ig-slab-body { transform: translateY(-10px); }
.ig-pulse { fill: var(--color-secondary); }
.ig.is-dark .ig-layers-art { filter: drop-shadow(0 30px 40px #01aef226); }

/* ---- hub / cycle ------------------------------------------------------- */
.ig-orbit { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin: 0 auto 18px; }
.ig-orbit > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-ring { fill: none; stroke: var(--ig-line); stroke-width: .3; stroke-dasharray: .9 1.5; transform-origin: 50px 50px; animation: ig-spin 80s linear infinite; }
.ig-ring.is-inner { stroke-dasharray: .5 1.2; animation-direction: reverse; animation-duration: 60s; opacity: .7; }
.ig-ring-run { fill: none; stroke: var(--color-primary); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset 2s cubic-bezier(.4, 0, .2, 1) .2s; }
.ig-spoke { stroke: var(--ig-line); stroke-width: .35; stroke-dasharray: 1 1; transition: stroke .35s, stroke-width .35s; }
.ig-spoke.is-active { stroke: var(--color-primary); stroke-width: .7; stroke-dasharray: none; }
.ig-pulse.is-comet { filter: drop-shadow(0 0 1.5px #01aef2); fill: var(--color-primary); }
@keyframes ig-spin { to { transform: rotate(360deg); } }
.ig-hub { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; border-radius: 50%; text-align: center; color: #fff; background: radial-gradient(circle at 30% 25%, #17465c, #0c0c0c 70%); box-shadow: 0 24px 44px #0c0c0c40, inset 0 0 0 1px #ffffff1f, inset 0 0 26px #01aef240; }
.ig-hub svg { width: 26px; height: 26px; color: var(--color-secondary); }
.ig-hub img { width: 44%; height: auto; border-radius: 0; }
.ig-hub strong { font-size: 15px; font-weight: var(--fw-semibold); line-height: 1.2; letter-spacing: -0.01em; }
.ig-hub small { font-size: 11.5px; line-height: 1.3; color: #b7c5cc; }
.ig-hub-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--color-primary); opacity: 0; animation: ig-ping 3.2s ease-out infinite; pointer-events: none; }
.ig-hub-pulse.is-late { animation-delay: 1.6s; }
@keyframes ig-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
.ig-node { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; outline: none; }
.ig-node .ig-orb { position: absolute; left: -29px; top: -29px; width: 58px; height: 58px; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, filter .4s; }
.ig-node .ig-orb svg { width: 24px; height: 24px; }
.ig-node-label { position: absolute; top: 34px; left: 0; width: 118px; transform: translateX(-50%); font-size: 12.5px; font-weight: var(--fw-medium); line-height: 1.25; text-align: center; color: var(--ig-ink); text-wrap: balance; transition: color .35s; }
.ig[data-ig-sync].has-active .ig-node:not(.is-active) .ig-orb { filter: saturate(.55); box-shadow: 0 8px 16px #0189bf26, inset 0 0 14px #ffffff73; }
.ig-node.is-active .ig-orb, .ig-node:focus-visible .ig-orb { transform: scale(1.18); box-shadow: 0 0 0 7px #01aef229, 0 18px 30px #0189bf59, inset 0 0 14px #ffffff73; }
.ig-node.is-active .ig-node-label { color: var(--ig-accent); }
.ig-orbit.is-dense .ig-node .ig-orb { left: -24px; top: -24px; width: 48px; height: 48px; }
.ig-orbit.is-dense .ig-node .ig-orb svg { width: 20px; height: 20px; }
.ig-orbit.is-dense .ig-node-label { top: 28px; width: 96px; font-size: 11.5px; }
@media screen and (max-width: 600px) {
  .ig-orbit { margin-bottom: 26px; }
  .ig-node .ig-orb, .ig-orbit.is-dense .ig-node .ig-orb { left: -21px; top: -21px; width: 42px; height: 42px; }
  .ig-node .ig-orb svg, .ig-orbit.is-dense .ig-node .ig-orb svg { width: 18px; height: 18px; }
  .ig-node .ig-orb b { font-size: 15px; }
  .ig-node-label, .ig-orbit.is-dense .ig-node-label { top: 25px; width: 78px; font-size: 10.5px; }
  .ig-hub strong { font-size: 12px; } .ig-hub small { display: none; } .ig-hub svg { width: 20px; height: 20px; }
}

/* ---- converge ---------------------------------------------------------- */
.ig-conv { display: grid; grid-template-columns: minmax(0, 1fr) clamp(48px, 7vw, 96px) auto clamp(48px, 7vw, 96px) minmax(0, 1fr); align-items: stretch; min-height: 360px; padding-top: 34px; }
.ig-conv-col { position: relative; display: flex; min-width: 0; }
.ig-conv-label { position: absolute; top: -34px; left: 0; font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .12em; text-transform: uppercase; color: var(--ig-accent); }
.ig-conv-col.is-outputs .ig-conv-label { left: auto; right: 0; }
.ig-conv-list { flex: 1; display: grid; grid-auto-rows: 1fr; min-width: 0; }
.ig-conv-cell { display: flex; padding: 7px 0; min-width: 0; }
.ig-conv-card { flex: 1; display: flex; gap: 14px; align-items: center; min-width: 0; padding: 16px 18px; border: 1px solid var(--ig-line); border-radius: 18px; background: var(--ig-card); transition: border-color .3s, transform .3s, box-shadow .3s; }
.ig-conv-card:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 12px 24px #0189bf1f; }
.ig-conv-card h3 { font-size: 16px; margin-bottom: 3px; }
.ig-conv-card p { font-size: 14px; }
.ig-conv-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--ig-soft); color: var(--ig-accent); }
.ig-conv-ic svg { width: 21px; height: 21px; }
.ig-conv-col.is-outputs .ig-conv-ic { background: linear-gradient(140deg, #29c1ff, var(--color-primary-strong)); color: #fff; }
.ig-wires { display: block; width: 100%; height: 100%; overflow: visible; }
.ig-wires path { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 5 9; opacity: .85; animation: ig-dash 1.1s linear infinite; }
@keyframes ig-dash { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
.ig-engine { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.ig-engine-core { position: relative; z-index: 1; display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 5px; width: 190px; height: 190px; padding: 18px; border-radius: 50%; text-align: center; color: #fff; background: radial-gradient(circle at 30% 25%, #17465c, #0c0c0c 70%); box-shadow: 0 26px 46px #0c0c0c47, inset 0 0 0 1px #ffffff1f, inset 0 0 30px #01aef24d; }
.ig-engine-core svg { width: 32px; height: 32px; color: var(--color-secondary); }
.ig-engine-core strong { font-size: 16px; font-weight: var(--fw-semibold); line-height: 1.2; }
.ig-engine-core small { font-size: 12px; line-height: 1.3; color: #b7c5cc; }
.ig-engine-ring { position: absolute; left: 50%; top: 50%; width: 222px; height: 222px; margin: -111px 0 0 -111px; border-radius: 50%; border: 1.5px dashed var(--color-primary); opacity: .6; animation: ig-spin 18s linear infinite; }
.ig-engine-ring.is-two { width: 254px; height: 254px; margin: -127px 0 0 -127px; border-style: dotted; border-color: var(--ig-line); opacity: 1; animation-duration: 30s; animation-direction: reverse; }
.ig-engine .ig-chips { position: absolute; top: calc(50% + 138px); left: 50%; width: 250px; transform: translateX(-50%); justify-content: center; margin: 0; }
@media screen and (max-width: 991px) {
  .ig-conv { grid-template-columns: 1fr; min-height: 0; }
  .ig-wires { display: none; }
  .ig-conv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .ig-engine { flex-flow: column; margin: 86px 0 106px; }
  .ig-engine::before, .ig-engine::after { content: ""; position: absolute; left: 50%; width: 2px; height: 46px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--color-primary) 0 5px, #0000 5px 11px); }
  .ig-engine::before { top: -72px; } .ig-engine::after { bottom: -72px; }
  .ig-engine .ig-chips { position: static; transform: none; width: auto; margin-top: 44px; }
  .ig-conv-col.is-outputs { margin-top: 34px; }
  .ig-conv-col.is-outputs .ig-conv-label { right: auto; left: 0; }
}
@media screen and (max-width: 600px) { .ig-conv-list { grid-template-columns: 1fr; } }

/* ---- matrix ------------------------------------------------------------ */
.ig-matrix-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.ig-matrix { width: 100%; border-collapse: collapse; }
.ig-matrix th, .ig-matrix td { padding: 16px 12px; border-bottom: 1px solid var(--ig-line); text-align: center; vertical-align: middle; }
.ig-matrix thead th { padding-top: 0; font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--ig-accent); line-height: 1.3; }
.ig-matrix tbody th { text-align: left; font-size: 16px; font-weight: var(--fw-medium); color: var(--ig-ink); width: 30%; }
.ig-matrix tbody th small { display: block; margin-top: 2px; font-size: 13px; font-weight: var(--fw-normal); color: var(--ig-text); }
.ig-matrix tbody tr { transition: background-color .25s; }
.ig-matrix tbody tr:hover { background: var(--ig-card); }
.ig-matrix tbody tr:last-child th, .ig-matrix tbody tr:last-child td { border-bottom: 0; }
.ig-dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.ig-dot.is-full { background: linear-gradient(140deg, #29c1ff, var(--color-primary-strong)); box-shadow: 0 0 0 5px #01aef21f, 0 6px 12px #0189bf40; }
.ig-dot.is-half { background: var(--color-secondary); box-shadow: 0 0 0 5px #7fd6f926; }
.ig-dot.is-none { width: 14px; height: 14px; border: 2px solid var(--ig-line); }
.ig-matrix-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ig-text); }
.ig-matrix-legend li { display: flex; align-items: center; gap: 10px; }
.ig-matrix-legend .ig-dot { width: 14px; height: 14px; box-shadow: none; }
.ig-matrix-legend .ig-dot.is-none { width: 12px; height: 12px; }

/* ---- shift ------------------------------------------------------------- */
.ig-shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: stretch; }
.ig-shift-side { padding: 34px 32px; border-radius: 28px; }
.ig-shift-side.is-before { background: var(--ig-card); border: 1.5px dashed #b4c1c8; }
.ig-shift-side.is-after { color: #fff; background: linear-gradient(145deg, #0c0c0c 0, #0c2f3f 55%, #0189bf 130%); box-shadow: 0 26px 46px #0189bf33; }
.ig-shift-tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .1em; text-transform: uppercase; background: #3b48521a; color: var(--ig-text); }
.is-after .ig-shift-tag { background: #01aef233; color: #9fe2fb; }
.ig-shift-side h3 { font-size: 22px; margin-bottom: 8px; }
.ig-shift-side.is-after h3 { color: #fff; } .ig-shift-side.is-after p { color: #c5d3da; }
.ig-shift-side ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ig-shift-side li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.is-before li { background: #fff; border: 1px solid var(--ig-line); color: var(--ig-text); }
.is-before li:nth-child(odd) { transform: rotate(-.7deg) translateX(-3px); }
.is-before li:nth-child(even) { transform: rotate(.6deg) translateX(5px); }
.ig.is-dark .is-before li { background: #0f1619; }
.is-after li { background: #ffffff12; border: 1px solid #ffffff1f; color: #eaf4f8; }
.ig-shift-side li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; }
.is-before li svg { color: #8a959c; background: #3b485214; }
.is-after li svg { color: #0c0c0c; background: var(--color-secondary); }
.ig-shift-arrow { display: flex; flex-flow: column; align-items: center; justify-content: center; gap: 0; min-width: 64px; }
.ig-shift-arrow span { display: block; width: 18px; height: 18px; margin: -3px 0; border-top: 3px solid var(--color-primary); border-right: 3px solid var(--color-primary); border-radius: 2px; transform: rotate(45deg); animation: ig-chev 1.5s ease-in-out infinite; }
.ig-shift-arrow span:nth-child(1) { animation-delay: 0s; } .ig-shift-arrow span:nth-child(2) { animation-delay: .2s; } .ig-shift-arrow span:nth-child(3) { animation-delay: .4s; }
.ig-shift-arrow { flex-flow: column; } .ig-shift-arrow i { display: flex; }
.ig-shift-arrow span { margin: 0 -3px; }
.ig-shift-arrow em { flex-basis: 100%; margin-top: 14px; font-style: normal; font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--ig-accent); max-width: 110px; }
@keyframes ig-chev { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media screen and (max-width: 991px) {
  .ig-shift { grid-template-columns: 1fr; gap: 20px; }
  .ig-shift-arrow { padding: 6px 0; } .ig-shift-arrow i { flex-flow: column; } .ig-shift-arrow span { transform: rotate(135deg); margin: -5px 0; }
  .ig-shift-arrow em { max-width: none; margin-top: 10px; }
  .ig-shift-side { padding: 28px 22px; }
}

/* ---- metrics ----------------------------------------------------------- */
.ig-metrics { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px 28px; }
.ig-metric { display: flex; flex-flow: column; align-items: center; text-align: center; }
.ig-ring-wrap { position: relative; width: 156px; height: 156px; margin-bottom: 20px; }
.ig-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ig-ring-bg { fill: none; stroke: var(--ig-line); stroke-width: 7; opacity: .7; }
.ig-ring-fg { fill: none; stroke: var(--color-primary); stroke-width: 7; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--o); filter: drop-shadow(0 0 5px #01aef280); transition: stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1); transition-delay: calc(var(--i) * .15s); }
.ig-metric .ig-metric-value { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: var(--fw-medium); line-height: 1; letter-spacing: -0.02em; color: var(--ig-ink); }
@media screen and (max-width: 991px) { .ig-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 520px) { .ig-metrics { grid-template-columns: 1fr; } }

/* ---- entrance (only when the script is running) ------------------------ */
.ig-js .ig:not(.is-in) :is(.ig-flow-node, .ig-legend-item, .ig-conv-cell, .ig-metric, .ig-shift-side li, .ig-engine, .ig-hub) { opacity: 0; transform: translateY(22px); }
.ig-js .ig:not(.is-in) .ig-hub { transform: translate(-50%, -50%) scale(.6); }
.ig-js .ig:not(.is-in) .ig-engine { transform: scale(.7); }
.ig-js .ig:not(.is-in) .ig-link { transform: scaleX(0); }
.ig-js .ig:not(.is-in) .ig-node .ig-orb { transform: scale(0); }
.ig-js .ig:not(.is-in) :is(.ig-node-label, .ig-spoke, .ig-wires, .ig-shift-arrow) { opacity: 0; }
.ig-js .ig:not(.is-in) .ig-slab { opacity: 0; transform: translateY(-70px); }
.ig-js .ig:not(.is-in) .ig-dot:not(.is-static) { transform: scale(0); }
.ig-js .ig:not(.is-in) .ig-ring-run { stroke-dashoffset: 100; }
.ig-js .ig:not(.is-in) .ig-ring-fg { stroke-dashoffset: var(--c); }
.ig-js .ig:not(.is-in) .ig-shift-side.is-after { opacity: 0; transform: translateX(30px); }
.ig-js .ig:not(.is-in) .ig-shift-side.is-before { opacity: 0; transform: translateX(-30px); }
.ig.is-in :is(.ig-flow-node, .ig-legend-item, .ig-conv-cell, .ig-metric, .ig-shift-side li) { transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * .11s + .1s); }
.ig.is-in :is(.ig-hub, .ig-engine) { transition: opacity .6s ease, transform .7s cubic-bezier(.2, 1.2, .3, 1); }
.ig.is-in .ig-link { transition: transform .6s ease; transition-delay: calc(var(--i) * .11s + .35s); }
.ig.is-in .ig-node .ig-orb { transition: transform .5s cubic-bezier(.2, 1.3, .3, 1), box-shadow .4s, filter .4s; transition-delay: calc(var(--i) * .09s + .3s), 0s, 0s; }
.ig.is-in.is-settled .ig-node .ig-orb { transition-delay: 0s; }
.ig.is-in :is(.ig-node-label, .ig-spoke) { transition: opacity .5s ease, stroke .35s, stroke-width .35s, color .35s; transition-delay: calc(var(--i) * .09s + .5s), 0s, 0s, 0s; }
.ig.is-in :is(.ig-wires, .ig-shift-arrow) { transition: opacity .6s ease .45s; }
.ig.is-in .ig-slab { transition: opacity .6s ease, transform .7s cubic-bezier(.2, 1, .3, 1); transition-delay: calc(var(--i) * .16s + .1s); }
.ig.is-in .ig-dot:not(.is-static) { transition: transform .45s cubic-bezier(.2, 1.5, .3, 1); transition-delay: calc(var(--d) * .07s + .15s); }
.ig.is-in .ig-shift-side { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.ig.is-in .ig-shift-side.is-after { transition-delay: .35s; }
.ig.is-in .ig-shift-side.is-after li { transition-delay: calc(var(--i) * .11s + .55s); }
.ig.is-settled :is(.ig-legend-item, .ig-node-label, .ig-spoke, .ig-slab, .ig-conv-cell, .ig-flow-node) { transition-delay: 0s; }
.ig.is-settled .ig-legend-item { transition: background-color .35s, border-color .35s, transform .35s, box-shadow .35s; }
/* long-running loops only run while the panel is on screen */
.ig:not(.is-live) :is(.ig-ring, .ig-hub-pulse, .ig-engine-ring, .ig-wires path, .ig-shift-arrow span) { animation-play-state: paused; }
.ig:not(.is-live) .ig-link::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ig *, .ig *::before, .ig *::after { animation: none !important; transition: none !important; }
  .ig-pulse, .ig-link::after, .ig-hub-pulse { display: none !important; }
  .ig-shift-arrow span { opacity: 1; }
}
@media screen and (max-width: 520px) {
  .ig-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .ig-ring-wrap { width: 118px; height: 118px; margin-bottom: 14px; }
  .ig-metric .ig-metric-value { font-size: 23px; }
  .ig-metric h3 { font-size: 15px; }
}
@media screen and (max-width: 600px) {
  .ig-matrix th, .ig-matrix td { padding: 12px 6px; }
  .ig-matrix thead th { font-size: 11.5px; letter-spacing: .02em; }
  .ig-matrix tbody th { font-size: 14px; }
}

/* =========================================================================
   Figures: the same art used bare inside an image slot (split, stack card,
   alternating row), plus the helix and architecture illustrations.
   ========================================================================= */
.ig.is-bare { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.ig.is-bare::before { display: none; }
.split-figure { width: 100%; max-width: 560px; margin-inline: auto; }
.split-figure.is-wide { max-width: 720px; }
.feature-card-image-wrap.is-figure { align-items: center; justify-content: center; }
.feature-card-image-wrap.is-figure > .ig { width: 100%; max-width: 520px; }
.essential-image-wrap.is-figure { display: grid; place-items: center; padding: 24px; }
.essential-image-wrap.is-figure > .ig { width: 100%; max-width: 520px; }
.ig-intro { margin-bottom: 44px; }
.ig-hub.is-light { color: var(--color-title); background: radial-gradient(circle at 30% 25%, #fff, #eef7fb 75%); box-shadow: 0 24px 44px #0189bf33, inset 0 0 0 5px #01aef2, inset 0 0 26px #01aef226; }
.ig-hub.is-light small { color: var(--color-text); }
.ig-hub.is-light img { width: 52%; margin-bottom: 2px; }
.ig--fig-hub .ig-orbit, .ig--fig-cycle .ig-orbit { margin-bottom: 34px; }

/* ---- helix ------------------------------------------------------------- */
.ig-helix-art { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; overflow: visible; }
.ig-helix-glow { fill: #01aef2; opacity: .1; filter: blur(34px); }
.ig-helix-spin { animation: ig-helix 9s linear infinite; }
@keyframes ig-helix { to { transform: translateY(calc(var(--helix) * -1)); } }
.ig-helix-art path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ig-helix-front .ig-helix-a { stroke: #01aef2; stroke-width: 15; }
.ig-helix-front .ig-helix-b { stroke: #7fd6f9; stroke-width: 15; }
.ig-helix-back .ig-helix-a { stroke: #0189bf; stroke-width: 10; opacity: .55; }
.ig-helix-back .ig-helix-b { stroke: #2587b4; stroke-width: 10; opacity: .45; }
.ig-helix-rungs line { stroke: #12303f; stroke-width: 3.5; stroke-linecap: round; }
.ig.is-dark .ig-helix-rungs line { stroke: #eaf7fd; }
.ig-helix-rungs circle { fill: #fff; stroke: #01aef2; stroke-width: 2; }
.ig-helix-tag { cursor: pointer; }
.ig-helix-tag line { stroke: var(--ig-line); stroke-width: 1.5; stroke-dasharray: 3 4; transition: stroke .35s; }
.ig-helix-tag rect { fill: #fff; stroke: var(--ig-line); stroke-width: 1.5; filter: drop-shadow(0 6px 10px #0c0c0c14); transition: fill .35s, stroke .35s; }
.ig-helix-tag text { fill: var(--color-title); font-family: var(--font-primary); font-weight: 500; transition: fill .35s; pointer-events: none; }
.ig-helix-node { fill: #fff; stroke: #01aef2; stroke-width: 3; transition: r .35s, fill .35s; }
.ig-helix-tag.is-active rect { fill: #0189bf; stroke: #0189bf; }
.ig-helix-tag.is-active text { fill: #fff; }
.ig-helix-tag.is-active line { stroke: #01aef2; stroke-dasharray: none; }
.ig-helix-tag.is-active .ig-helix-node { fill: #01aef2; r: 9.5px; }
.ig-js .ig:not(.is-in) .ig-helix-tag { opacity: 0; }
.ig.is-in .ig-helix-tag { transition: opacity .5s ease; transition-delay: calc(var(--i) * .12s + .3s); }
.ig.is-in.is-settled .ig-helix-tag { transition-delay: 0s; }
.ig:not(.is-live) .ig-helix-spin { animation-play-state: paused; }

/* ---- arch -------------------------------------------------------------- */
.ig-arch { display: flex; flex-flow: column; width: 100%; }
.ig-arch-wide { max-width: 760px; margin-inline: auto; }
.ig-arch-actors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ig-arch-actor { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 34px; border: 1px solid var(--ig-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 22px #0c0c0c0f; }
.ig-arch-actor strong { display: block; font-size: 14.5px; font-weight: var(--fw-medium); line-height: 1.25; color: var(--color-title); }
.ig-arch-actor small { display: block; font-size: 12px; line-height: 1.3; color: var(--color-text); }
.ig-arch-link { position: relative; display: block; align-self: center; width: 2px; height: 26px; margin: 4px 0; background: repeating-linear-gradient(180deg, var(--color-primary) 0 5px, #0000 5px 10px); }
.ig-arch-actor .ig-arch-link { position: absolute; left: 50%; top: 100%; height: 30px; margin: 2px 0 0 -1px; }
.ig-arch-link::after { content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px #01aef233, 0 0 12px #01aef2; animation: ig-run-y 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.ig-arch-actor:nth-child(2) .ig-arch-link::after { animation-delay: .7s; }
.ig-arch-stack { display: flex; flex-flow: column; }
.ig-arch-group { padding: 16px; border-radius: 20px; border: 1px solid var(--ig-line); background: #fff; }
.ig-arch-name { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: var(--fw-semibold); letter-spacing: -0.01em; line-height: 1.25; }
.ig-arch-name svg { flex: none; width: 18px; height: 18px; }
.ig-arch-group > small { display: block; margin-top: 4px; font-size: 12.5px; }
.ig-arch-group.is-dark { color: #fff; background: radial-gradient(130% 120% at 50% -10%, #123344, #0c0c0c 70%); border-color: #1b2a32; box-shadow: 0 22px 40px #0c0c0c33; }
.ig-arch-group.is-dark .ig-arch-name svg { color: var(--color-secondary); }
.ig-arch-group.is-cyan { color: #fff; background: linear-gradient(135deg, #01aef2, #0189bf); border-color: #0189bf; box-shadow: 0 16px 30px #0189bf40; }
.ig-arch-group.is-slate { color: #fff; background: linear-gradient(135deg, #3b4852, #232c33); border-color: #232c33; }
.ig-arch-group.is-light .ig-arch-name { color: var(--color-title); }
.ig-arch-group.is-light .ig-arch-name svg { color: var(--color-primary-strong); }
.ig-arch-group.has-bands { display: grid; gap: 10px; }
.ig-arch-band { padding: 12px 14px; border-radius: 14px; background: #ffffff12; border: 1px solid #ffffff24; }
.ig-arch-group.is-light .ig-arch-band { background: var(--ig-card); border-color: var(--ig-line); }
.ig-arch-band strong { display: block; font-size: 13.5px; font-weight: var(--fw-medium); line-height: 1.3; }
.ig-arch-band small { display: block; font-size: 12px; opacity: .8; }
.ig-arch .ig-chips { margin-top: 8px; gap: 5px; }
.ig-arch .ig-chips li { padding: 3px 9px; font-size: 11.5px; }
.ig-arch-group:is(.is-dark, .is-cyan, .is-slate) .ig-chips li { background: #ffffff1f; border-color: #ffffff33; color: #fff; }
.ig-js .ig:not(.is-in) :is(.ig-arch-actor, .ig-arch-group, .ig-arch-band) { opacity: 0; transform: translateY(18px); }
.ig-js .ig:not(.is-in) .ig-arch-stack > .ig-arch-link { opacity: 0; }
.ig.is-in :is(.ig-arch-actor, .ig-arch-group, .ig-arch-band) { transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * .12s + .1s); }
.ig.is-in .ig-arch-stack > .ig-arch-link { transition: opacity .5s ease .5s; }
.ig:not(.is-live) .ig-arch-link::after { animation-play-state: paused; }
@media screen and (max-width: 420px) { .ig-arch-actors { gap: 8px; } .ig-arch-actor { padding: 10px; gap: 8px; } .ig-arch-actor .ig-conv-ic { width: 34px; height: 34px; } }

/* =========================================================================
   THEME BRIDGE — the diagrams take their colours from the site tokens, so
   they follow the dark and light themes. `.ig.is-dark` keeps its own dark
   palette in both themes.
   ========================================================================= */
.ig:not(.is-dark) { --ig-ink: var(--foreground); --ig-text: var(--muted-foreground); --ig-line: var(--border); --ig-soft: color-mix(in srgb, var(--brand) 12%, transparent); --ig-card: color-mix(in srgb, var(--accent) 70%, var(--background)); --ig-accent: var(--link); }
.ig { border-color: var(--border); border-radius: var(--radius-xl); box-shadow: none; }
.ig:not(.is-dark):not(.is-bare) { background: var(--card); }
.ig::before { display: none; }
.ig h3 { letter-spacing: var(--tracking-tight); }
.ig-chips li { border-color: color-mix(in srgb, var(--brand) 26%, var(--border)); }
.ig-legend-item.is-active { background: var(--ig-card); border-color: var(--ig-line); }
.ig-helix-tag rect { fill: var(--card); }
.ig-helix-tag text { fill: var(--foreground); }
.ig-helix-node { fill: var(--card); }
.ig-helix-rungs line { stroke: color-mix(in srgb, var(--foreground) 45%, transparent); }
.ig-helix-rungs circle { fill: var(--background); }
.ig-arch-actor, .ig-arch-group { background: var(--card); }
.ig-arch-actor strong { color: var(--foreground); }
.ig-arch-group.is-slate { background: linear-gradient(135deg, #3b4852, #232c33); }
.ig-shift-side.is-before { border-color: var(--ring); }
.ig:not(.is-dark) .is-before li { background: var(--card); }
.ig-shift-tag { background: var(--muted); }
.ig-matrix tbody tr:hover { background: var(--ig-card); }
.ig-conv-card { background: var(--ig-card); }
.ig-hub.is-light { box-shadow: 0 24px 44px color-mix(in srgb, var(--brand) 22%, transparent), inset 0 0 0 5px var(--brand), inset 0 0 26px #01aef226; }
.row-media.is-figure > .ig, .split-media .ig { width: 100%; max-width: 520px; }
.ig-layers-art { filter: drop-shadow(0 26px 30px #00000040); }
