/* Fusion homepage infographics (docs/v3/design/concept-fusion, ADR-026): the guided stepper bits and the six
   sections. Tokens only; the per-element custom properties the concept set inline (--w, --h) are classes here. */

/* hero path chooser */
.paths { display: grid; gap: .8rem; margin-top: 2.25rem; max-width: 38rem; }
@media (min-width: 620px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: grid; gap: .45rem; padding: 1.2rem 1.25rem 1.1rem; border-radius: 20px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.path:hover { border-color: var(--petal); transform: translateY(-3px); box-shadow: 0 18px 40px -22px var(--petal); }
.path b { font-family: var(--body); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.path b svg { width: 20px; height: 20px; flex: none; stroke: var(--petal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.path:hover b svg { transform: translateX(3px); }
.path span { color: var(--dim); font-size: .95rem; line-height: 1.45; }
.path-alt { margin-top: 1.1rem; color: var(--dim); font-size: var(--s-1); }
.path-alt a { color: var(--fg); }

/* chapter strip: tells the visitor what the page will answer */
.chapters { position: sticky; top: calc(74px + env(safe-area-inset-top, 0px)); z-index: 9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
/* the list is the container itself: only the block margins are reset, so .wrap's auto side margins keep it aligned
   with every section heading */
.chapters ol { list-style: none; margin-top: 0; margin-bottom: 0; display: flex; gap: .4rem 2rem; flex-wrap: wrap; justify-content: space-between; padding-block: .5rem; }
.chapters a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--dim); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.chapters a:hover { color: var(--fg); }
.chapters a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--petal); }
@media (max-width: 760px) { .chapters ol { flex-wrap: nowrap; justify-content: flex-start; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .chapters ol::-webkit-scrollbar { display: none; } }
.chapters i { font-style: normal; font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.35rem; color: var(--petal); }

/* shared stepper bits */
[data-panel] { display: none; }
[data-panel].is-on { display: block; animation: fadein .45s ease both; }
.duo[data-panel].is-on { display: grid; }
[data-panel]:not(.is-on) { display: none !important; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.n { opacity: .26; transition: opacity .45s, filter .45s; }
.n.is-on { opacity: 1; }
.guide { display: flex; margin-top: .75rem; align-items: center; gap: .55rem; font-size: var(--s-1); color: var(--dim); }
.guide i { width: 16px; height: 16px; flex: none; border-radius: 50%; background: conic-gradient(var(--petal) calc(var(--g, 0) * 360deg), var(--line-2) 0); -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px); mask: radial-gradient(circle, transparent 4.5px, #000 5px); }
.guide[hidden] { display: none; }
.sec-hint { margin-bottom: 1.25rem; }
.duo { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo small { display: block; font-size: var(--s-1); font-weight: 600; color: var(--dim); margin-bottom: .35rem; }
.duo .us small { color: var(--petal-text); }
.duo p { font-size: 1.15rem; line-height: 1.45; }
[data-goto] { cursor: pointer; }

/* 1. promise timeline over the transform strands */
.promise { position: relative; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(170deg, var(--panel), var(--bg)); overflow: hidden; --p: 0; }
.promise canvas { position: absolute; left: 0; right: 0; top: 16px; width: 100%; height: 150px; opacity: .45; }
.track { position: relative; padding: 4.5rem clamp(1rem, 3vw, 2.5rem) 0; }
.lock { position: absolute; left: 30%; right: 30%; top: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.lock span { display: inline-flex; gap: .45rem; align-items: center; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--dim); font-size: var(--s-1); font-weight: 600; white-space: nowrap; transition: color .4s, border-color .4s; }
.lock span svg { width: 14px; height: 14px; fill: none; stroke: var(--dim); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.lock.is-on span { color: var(--fg); border-color: var(--petal); }
.lock.is-on span svg { stroke: var(--petal); }
.nodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rail, .rail-fill { position: absolute; left: 10%; top: 17px; height: 4px; border-radius: 2px; }
.rail { right: 10%; background: var(--line-2); }
.rail-fill { width: calc(80% * var(--p)); background: linear-gradient(90deg, var(--cyan), var(--petal)); box-shadow: 0 0 16px color-mix(in oklab, var(--petal) 50%, transparent); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.node { position: relative; display: grid; justify-items: center; gap: .8rem; padding: 0 .25rem 1rem; background: none; border: 0; color: var(--dim); font: inherit; cursor: pointer; }
.node i { width: 38px; height: 38px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--c); background: var(--bg); transition: all .4s; }
.node.done i { background: var(--c); }
.node.is-on i { background: var(--c); transform: scale(1.18); box-shadow: 0 0 26px var(--c); }
.node b { font-family: var(--body); font-size: clamp(.95rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -.015em; text-align: center; }
.node.is-on b { color: var(--fg); }
.promise-panel { margin: .5rem clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .promise-panel { grid-template-columns: 15rem 1fr; align-items: center; } }
.promise-panel h3 { font-size: 1.9rem; font-weight: 600; }
.promise-panel h3 em { display: block; font-style: normal; font-family: var(--body); font-weight: 600; font-size: 3.2rem; line-height: 1; letter-spacing: -.015em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--cyan), var(--petal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 620px) { .node b { font-size: .8rem; } .lock { left: 8%; right: 8%; } }

/* 2. solid ground: centred, symmetric stack + explanation */
.ground { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 980px) { .ground { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.stack { display: grid; gap: .6rem; justify-items: center; }
.layer { width: var(--w); min-height: 64px; box-sizing: border-box; padding: .6rem 1.2rem; display: flex; align-items: center; justify-content: center; gap: .8rem; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--c) 40%, transparent); background: linear-gradient(90deg, color-mix(in oklab, var(--c) 10%, transparent), color-mix(in oklab, var(--c) 18%, transparent), color-mix(in oklab, var(--c) 10%, transparent)); color: var(--fg); font: inherit; cursor: pointer; transition: all .45s cubic-bezier(.2,.7,.2,1); }
.layer b { font-family: var(--body); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.layer small { color: var(--dim); font-size: .8rem; }
.layer.is-on { background: linear-gradient(90deg, color-mix(in oklab, var(--c) 22%, transparent), color-mix(in oklab, var(--c) 42%, transparent), color-mix(in oklab, var(--c) 22%, transparent)); border-color: var(--c); box-shadow: 0 0 44px -6px color-mix(in oklab, var(--c) 60%, transparent); transform: scale(1.03); }
.layer.is-on small { color: var(--fg); }
.w64 { --w: 64%; } .w73 { --w: 73%; } .w82 { --w: 82%; } .w91 { --w: 91%; } .w100 { --w: 100%; }
.ground-panel { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--panel), var(--bg-2)); min-height: 21rem; }
.ground-panel small { font-size: var(--s-1); font-weight: 600; color: var(--petal); }
.ground-panel h3 { font-size: 1.9rem; font-weight: 600; margin: .4rem 0 .7rem; }
.ground-panel .why { color: var(--dim); font-size: 1.1rem; line-height: 1.5; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; padding-block: .75rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.checks li::before { content: ""; width: .7rem; height: .7rem; margin-top: .4rem; border-radius: 50% 0; background: var(--petal); transform: rotate(45deg); }

/* 3. agent at work */
.agent { border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(45% 60% at 50% 45%, color-mix(in oklab, var(--petal) 10%, transparent), transparent 70%), linear-gradient(170deg, var(--panel), var(--bg)); padding: clamp(1rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; }
.agent svg.flow { width: 100%; height: auto; display: block; }
.flow .box { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.5; transition: stroke .4s; }
.flow .is-on .box { stroke: var(--k); }
.flow .lbl { fill: var(--fg); font: 600 15px var(--body); }
.flow .lbl-lg { font-size: 18px; }
.flow .sub { fill: var(--dim); font: 400 13px var(--body); }
.flow .ico { fill: none; stroke: var(--k); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow .wire { fill: none; stroke: var(--k); stroke-width: 2; stroke-linecap: round; }
.flow .core { fill: url(#coreGlow); stroke: var(--petal); stroke-width: 2; }
.flow .glow-a { stop-color: var(--petal); stop-opacity: .45; }
.flow .glow-b { stop-color: var(--panel); }
.flow .m-in { fill: var(--cyan); } .flow .m-out { fill: var(--petal); } .flow .m-ok { fill: var(--open); }
.flow .appr { fill: color-mix(in oklab, var(--open) 10%, transparent); stroke: var(--open); stroke-width: 1.5; stroke-dasharray: 6 5; }
.flow .is-on { filter: drop-shadow(0 0 10px color-mix(in oklab, var(--k) 55%, transparent)); }
.flow [data-box] { cursor: pointer; outline: none; }
.flow [data-box]:focus-visible .box, .flow [data-box]:focus-visible .core, .flow [data-box]:focus-visible .appr { stroke: var(--focus); stroke-width: 3; }
[data-boxcap], .cap-box { display: none; }
.agent.focus .caption [data-panel] { display: none !important; }
.agent.focus .cap-ex { display: none; } .agent.focus .cap-box { display: inline; }
.agent.focus [data-boxcap].is-on { display: block; animation: fadein .35s ease both; }
.agent.focus .tick { color: var(--dim); border-color: var(--line); background: var(--bg-2); }
.agent.focus .tick::after { width: 0; } .agent.focus .tick em { color: var(--dim); }
.k-in { --k: var(--cyan); } .k-out { --k: var(--petal); } .k-ok { --k: var(--open); }
.ticker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.tick { position: relative; overflow: hidden; min-height: 52px; padding: .5rem .8rem; display: flex; align-items: center; gap: .55rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--dim); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: left; transition: all .35s; }
.tick em { font-style: normal; font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.35rem; color: var(--dim); }
.tick::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--petal)); transition: width .4s; }
.tick.done em, .tick.is-on em { color: var(--petal); }
.tick.done::after, .tick.is-on::after { width: 100%; }
.tick.is-on { color: var(--fg); border-color: var(--petal); background: var(--panel); }
.caption { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.caption small { color: var(--dim); font-weight: 600; }
.caption p { font-size: 1.2rem; }
@media (max-width: 700px) { .ticker { grid-template-columns: 1fr 1fr; } .tick span { font-size: .85rem; } }

/* 4. build + products */
.soon { margin-top: 2.5rem; display: grid; gap: 1.5rem; align-items: center; padding: 1.25rem; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); }
@media (min-width: 860px) { .soon { grid-template-columns: 22rem 1fr auto; padding: 1rem 2rem 1rem 1rem; } }
.soon .art { aspect-ratio: 400 / 220; border-radius: 18px; }
.soon h3 { font-size: 1.4rem; font-weight: 600; }
.soon p { color: var(--dim); margin-top: .35rem; max-width: 46ch; }

/* 5. talent: handshake + funnel + steps */
.funnel { display: flex; align-items: center; gap: 4px; height: 76px; margin-bottom: 1.25rem; }
.seg { flex: 1; height: var(--h); display: flex; align-items: center; padding: 0 .8rem; border-radius: 4px; background: color-mix(in oklab, var(--c) 18%, transparent); color: color-mix(in oklab, var(--dim) 70%, var(--fg)); font-size: .82rem; font-weight: 600; line-height: 1.2; transition: all .45s; }
.seg:first-child { border-radius: 14px 4px 4px 14px; } .seg:last-child { border-radius: 4px 999px 999px 4px; }
.seg:hover { background: color-mix(in oklab, var(--c) 40%, transparent); }
.seg.is-on { background: var(--c); color: var(--bg); box-shadow: 0 0 30px color-mix(in oklab, var(--c) 55%, transparent); }
.h76 { --h: 76px; } .h62 { --h: 62px; } .h48 { --h: 48px; } .h34 { --h: 34px; }
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.tstep { width: 100%; height: 100%; min-height: 72px; box-sizing: border-box; padding: .6rem .85rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; overflow-wrap: anywhere; line-height: 1.2; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--dim); font: inherit; font-weight: 600; font-size: .92rem; text-align: left; cursor: pointer; transition: all .35s; }
.tstep em { font-style: normal; font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.25rem; line-height: 1; color: var(--dim); }
@media (min-width: 980px) { .talent-pair.pair-flip { grid-template-columns: 6fr 5fr; } }
.tstep.done em, .tstep.is-on em { color: var(--petal); }
.tstep.is-on { color: var(--fg); border-color: var(--petal); background: var(--panel); }
.tpanel { margin-top: 1rem; padding: 1.1rem 1.25rem; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); min-height: 7.5rem; }
.tpanel .duo p { font-size: 1rem; }

/* 6. security: the lotus at the centre of five rings */
.secure { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 980px) { .secure { grid-template-columns: 30rem 1fr; gap: 4rem; } }
.rings { width: 100%; max-width: 30rem; height: auto; justify-self: center; }
.rings .ring { fill: none; stroke: var(--c); stroke-width: 16; opacity: .2; transition: all .45s; cursor: pointer; pointer-events: stroke; outline: none; }
.rings .ring:hover { opacity: .6; }
.rings .ring.is-on { stroke-width: 26; opacity: 1; filter: drop-shadow(0 0 12px var(--c)); }
.rings .ring:focus-visible { opacity: 1; stroke: var(--focus); }
.rings .orbit { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 7; }
.rings .core-bg { fill: var(--bg); }
.shield { display: grid; gap: .4rem; }
.shield button { width: 100%; padding: .8rem 1rem; display: grid; grid-template-columns: 1rem 1fr; gap: .9rem; align-items: start; border-radius: 16px; border: 1px solid transparent; background: none; color: var(--dim); font: inherit; text-align: left; cursor: pointer; transition: all .35s; }
.shield button i { width: 14px; height: 14px; margin-top: .3rem; border-radius: 50%; background: var(--c); }
.shield button b { display: block; color: var(--fg); font-size: 1.08rem; }
.shield button .stops { display: none; color: color-mix(in oklab, var(--c) 80%, var(--fg)); margin-top: .3rem; }
.shield button.is-on { border-color: color-mix(in oklab, var(--c) 60%, transparent); background: color-mix(in oklab, var(--c) 9%, transparent); }
.shield button.is-on i { box-shadow: 0 0 14px var(--c); }
.shield button.is-on .stops { display: block; }

/* the five step colours, cyan base to petal tips, with the light-theme set (light c1 is one step darker than the
   concept's #0A86B0 so white text and the "Stops:" line on it reach 4.5:1; OPEN-QUESTIONS #75) */
.c1 { --c: #6FE3FF; } .c2 { --c: #9DCBF2; } .c3 { --c: #C5A6DE; } .c4 { --c: #E681BD; } .c5 { --c: #FF5C93; }
:root[data-theme="light"] .c1 { --c: #06718F; } :root[data-theme="light"] .c2 { --c: #3D6FB8; } :root[data-theme="light"] .c3 { --c: #7656B0; } :root[data-theme="light"] .c4 { --c: #B03A8A; } :root[data-theme="light"] .c5 { --c: #D0265F; }

/* reduced motion: no walkthrough, no fly-ins; every hover and tap still works */
@media (prefers-reduced-motion: reduce) {
  [data-panel].is-on, .agent.focus [data-boxcap].is-on { animation: none; }
  .guide { display: none; }
  .path, .path b svg, .layer, .seg, .tick, .tstep, .node i, .rail-fill, .lock, .n, .rings .ring, .shield button { transition: none; }
}
