/* ==========================================================================
   Animated product prototypes — scale with their own width (container units)
   Designed at ~720px wide; everything in em so it scales cleanly.
   ========================================================================== */

.proto-fig { margin: 0; position: relative; }
.proto-cap { margin-top: 12px; font-size: 0.78rem; color: var(--muted); text-align: center; }
.proto-fig.compact .proto-cap { display: none; }

.proto {
	container-type: inline-size;
	--p-bg: #ffffff; --p-side: #f6f6f9; --p-line: #ececf1; --p-card: #ffffff; --p-soft: #f3f3f7;
	--p-text: #1d1d1f; --p-mute: #8a8a93; --p-acc: #6b2fa0;
	--blue: #2563eb; --violet: #7c3aed; --rose: #e11d48; --green: #16a34a; --amber: #d97706; --cyan: #0891b2;
	position: relative; width: 100%;
	background: var(--p-bg); color: var(--p-text);
	border-radius: 16px; overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 30px 70px rgba(30, 20, 80, 0.16), 0 6px 18px rgba(0, 0, 0, 0.06);
	font-family: var(--font);
	text-align: left; line-height: 1.3; letter-spacing: -0.01em;
	user-select: none;
}
.proto * { box-sizing: border-box; }
.proto.is-dark {
	--p-bg: #0f1115; --p-side: #14171d; --p-line: #232731; --p-card: #171a21; --p-soft: #1e222b;
	--p-text: #f1f1f4; --p-mute: #8b90a0; --p-acc: #a78bfa;
	border-color: rgba(255, 255, 255, 0.06);
}
.pw-bar, .pw-app { font-size: clamp(7px, 1.62cqi, 12.5px); }

/* window chrome */
.pw-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.85em 1.1em; background: var(--p-side); border-bottom: 1px solid var(--p-line); }
.pw-bar > i { width: 0.85em; height: 0.85em; border-radius: 50%; background: #ff5f57; }
.pw-bar > i:nth-child(2) { background: #febc2e; } .pw-bar > i:nth-child(3) { background: #28c840; }
.pw-url { margin: 0 auto; padding: 0.3em 1.4em; border-radius: 0.6em; background: var(--p-soft); color: var(--p-mute); font-size: 0.9em; }
.pw-live { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85em; font-weight: 600; color: var(--green); }
.pw-live b { width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; animation: pDot 1.6s infinite; }

.pw-app { display: grid; grid-template-columns: 11em 1fr; min-height: 30em; }
.pw-side { background: var(--p-side); border-right: 1px solid var(--p-line); padding: 1.2em 0.8em; display: flex; flex-direction: column; gap: 0.25em; }
.pw-logo { width: 2.2em; height: 2.2em; border-radius: 0.7em; background: var(--brand-grad); margin: 0 0 1em 0.5em; }
.pw-nav { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.6em; border-radius: 0.6em; color: var(--p-mute); font-size: 0.95em; white-space: nowrap; overflow: hidden; }
.pw-nav em { width: 0.9em; height: 0.9em; border-radius: 0.3em; background: currentColor; opacity: 0.35; flex: none; }
.pw-nav.on { background: var(--p-card); color: var(--p-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.pw-nav.on em { background: var(--p-acc); opacity: 1; }
.pw-main { padding: 1.2em 1.4em 1.4em; display: grid; gap: 1em; align-content: start; min-width: 0; }
.pw-top { display: flex; align-items: center; gap: 0.8em; }
.pw-title { font-size: 1.35em; font-weight: 700; letter-spacing: -0.02em; margin-right: auto; }
.pw-search { width: 9em; height: 1.9em; border-radius: 0.6em; background: var(--p-soft); }
.pw-bell { width: 1.9em; height: 1.9em; border-radius: 0.6em; background: var(--p-soft); position: relative; }
.pw-bell::after { content: ""; position: absolute; top: 0.35em; right: 0.35em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--rose); animation: pDot 2s infinite; }
.pw-avatar { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #e11d48); }

/* shared bits */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; }
.kpi { position: relative; overflow: hidden; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 0.9em; padding: 0.9em 1em; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0.25em; background: var(--k, var(--blue)); }
.kpi span { display: block; font-size: 0.85em; color: var(--p-mute); }
.kpi strong { display: block; font-size: 1.6em; letter-spacing: -0.03em; margin-top: 0.15em; }
.kpi small { display: block; font-size: 0.78em; color: var(--k, var(--blue)); margin-top: 0.2em; }
.t-blue { --k: var(--blue); } .t-violet { --k: var(--violet); } .t-rose { --k: var(--rose); } .t-green { --k: var(--green); } .t-amber { --k: var(--amber); }
.kpi { animation: pRise .7s both; }
.kpi:nth-child(2) { animation-delay: .1s; } .kpi:nth-child(3) { animation-delay: .2s; } .kpi:nth-child(4) { animation-delay: .3s; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.cols2.wide-left { grid-template-columns: 1.45fr 1fr; }
.pcard { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 0.9em; padding: 1em; min-width: 0; }
.pcard-h { display: flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 1em; margin-bottom: 0.8em; }
.pcard-h small { margin-left: auto; color: var(--p-mute); font-weight: 400; font-size: 0.85em; }
.pcard-h.sm { font-size: 0.9em; margin: 0.9em 0 0.6em; }
.dot-live { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--green); margin-left: auto; animation: pDot 1.4s infinite; }
.pill { display: inline-block; padding: 0.25em 0.7em; border-radius: 99em; font-size: 0.78em; font-weight: 600; white-space: nowrap; }
.pill.ok { background: rgba(22, 163, 74, 0.12); color: var(--green); }
.pill.warn { background: rgba(217, 119, 6, 0.13); color: var(--amber); }
.pill.bad { background: rgba(225, 29, 72, 0.12); color: var(--rose); }
.pill.new { background: rgba(37, 99, 235, 0.12); color: var(--blue); animation: pGlow 2.4s infinite; }

/* ---------- HMIS ---------- */
.proto-hospital-management-software { --p-acc: #e11d48; }
.queue { display: grid; gap: 0.5em; }
.q-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7em; align-items: center; padding: 0.55em 0.6em; border-radius: 0.7em; background: var(--p-soft); animation: pSlide .6s both; animation-delay: calc(var(--i) * .12s); }
.q-row:first-child { background: rgba(37, 99, 235, 0.08); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25); }
.q-row span { font-size: 0.92em; font-weight: 600; }
.q-row small { display: block; font-weight: 400; color: var(--p-mute); font-size: 0.85em; }
.tok { font-size: 0.85em; padding: 0.35em 0.5em; border-radius: 0.5em; background: var(--p-card); }
.ecg { width: 100%; height: 4.5em; background: repeating-linear-gradient(90deg, transparent 0 1.4em, rgba(225, 29, 72, .06) 1.4em calc(1.4em + 1px)), #fff5f7; border-radius: 0.7em; }
.ecg path { fill: none; stroke: var(--rose); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: pDraw 2.6s linear infinite; }
.vitals { display: flex; justify-content: space-between; font-size: 0.85em; color: var(--p-mute); margin-top: 0.6em; }
.vitals b { color: var(--p-text); }
.beds { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.35em; }
.beds i { aspect-ratio: 1; border-radius: 0.3em; background: var(--p-soft); border: 1px solid var(--p-line); }
.beds i.occ { background: rgba(124, 58, 237, 0.75); border-color: transparent; }
.beds i.new { background: var(--green); animation: pBlink 1.6s infinite; }

/* ---------- CCTV VMS ---------- */
.vms { display: grid; grid-template-columns: 1fr 13em; gap: 1em; }
.vms-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; }
.cam { position: relative; aspect-ratio: 16/10; border-radius: 0.5em; overflow: hidden; background: #0b0d12; }
.scene { position: absolute; inset: 0; animation: pPan 14s ease-in-out infinite alternate; }
.s1 .scene { background: linear-gradient(180deg, #3b4a66 0 45%, #1f2a3d 45% 100%), #222; background-image: linear-gradient(180deg, #46597c 0 40%, transparent 40%), linear-gradient(90deg, transparent 0 20%, #2a364d 20% 34%, transparent 34% 60%, #33415c 60% 80%, transparent 80%), linear-gradient(180deg, #1c2536, #121826); }
.s2 .scene { background-image: radial-gradient(circle at 70% 30%, rgba(255, 220, 160, .45), transparent 30%), linear-gradient(90deg, #3a3326 0 30%, #4a4131 30% 70%, #3a3326 70%); }
.s3 .scene { background-image: repeating-linear-gradient(90deg, #2b2f3a 0 18%, #f3f3f3 18% 19%), linear-gradient(180deg, #1f232c, #14171d); }
.s4 .scene { background-image: repeating-linear-gradient(0deg, #3a2f26 0 22%, #2a2119 22% 25%), linear-gradient(90deg, #4b3b2d, #2c241c); }
.s5 .scene { background-image: radial-gradient(circle at 30% 60%, rgba(140, 200, 255, .35), transparent 35%), linear-gradient(180deg, #2e3d4f 0 60%, #1e2833 60%); }
.s6 .scene { background-image: linear-gradient(120deg, #1b2a24 0 40%, #24392f 40% 70%, #142019 70%); }
.noise { position: absolute; inset: -50%; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 3px 3px; animation: pNoise .5s steps(4) infinite; mix-blend-mode: screen; }
.cam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 48%, rgba(255, 255, 255, .06) 50%, transparent 52%); background-size: 100% 300%; animation: pScanline 4s linear infinite; }
.cam-n, .cam-b, .cam-t, .rec { position: absolute; z-index: 2; font-size: 0.72em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.cam-n { left: 0.6em; top: 0.5em; font-weight: 600; }
.rec { right: 0.6em; top: 0.5em; display: flex; align-items: center; gap: 0.3em; font-weight: 700; }
.rec b { width: 0.6em; height: 0.6em; border-radius: 50%; background: #ff3b30; animation: pBlink 1.2s infinite; }
.cam-b { left: 0.6em; bottom: 0.5em; padding: 0.1em 0.5em; border-radius: 0.4em; background: rgba(0, 0, 0, .45); }
.cam-t { right: 0.6em; bottom: 0.5em; font-variant-numeric: tabular-nums; opacity: .85; }
.motion-box { position: absolute; z-index: 2; width: 22%; height: 40%; border: 2px solid #ffcc00; border-radius: 0.3em; left: 10%; top: 40%; animation: pWalk 6s ease-in-out infinite; }
.motion-box em { position: absolute; top: -1.5em; left: -2px; font-style: normal; font-size: 0.68em; font-weight: 700; color: #111; background: #ffcc00; padding: 0.1em 0.4em; border-radius: 0.3em; }
.vms-side { display: grid; gap: 0.4em; align-content: start; }
.dev { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0.6em; border-radius: 0.6em; background: var(--p-soft); font-size: 0.85em; }
.dev i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.dev i.warn { background: var(--rose); box-shadow: 0 0 0 3px rgba(225, 29, 72, .25); animation: pBlink 1s infinite; }
.vms-side .pcard-h { margin: 0.6em 0 0.2em; }
.alert { font-size: 0.82em; padding: 0.5em 0.7em; border-radius: 0.6em; border-left: 3px solid var(--amber); background: rgba(217, 119, 6, .1); animation: pSlide 6s infinite; }
.alert.a2 { border-color: var(--rose); background: rgba(225, 29, 72, .1); animation-delay: 2s; }
.alert.a3 { border-color: var(--blue); background: rgba(37, 99, 235, .12); animation-delay: 4s; }

/* ---------- ISP ---------- */
.proto-isp-billing-software { --p-acc: #0891b2; }
.sync { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8em; font-weight: 500; color: var(--cyan); }
.sync i { width: 0.9em; height: 0.9em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pSpin 1s linear infinite; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.45em; align-items: end; height: 10em; padding: 0 0.2em; background: repeating-linear-gradient(0deg, transparent 0 2.45em, var(--p-line) 2.45em calc(2.45em + 1px)); }
.bars i { height: var(--h); border-radius: 0.4em 0.4em 0.15em 0.15em; background: linear-gradient(180deg, #22d3ee, #2563eb); transform-origin: bottom; animation: pGrow 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .06s); }
.bars i:last-child { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.bars-x { display: flex; justify-content: space-between; font-size: 0.75em; color: var(--p-mute); margin-top: 0.4em; }
.tbl { display: grid; gap: 0.35em; }
.tr { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 0.5em; font-size: 0.85em; padding: 0.5em 0.6em; border-radius: 0.6em; background: var(--p-soft); }
.tr-new { animation: pFlash 3s infinite; }

/* ---------- Mobile ---------- */
.proto-mobile { container-type: inline-size; background: radial-gradient(circle at 30% 20%, #ede9fe, transparent 50%), radial-gradient(circle at 80% 80%, #dbeafe, transparent 50%), #f5f5f7; border-radius: 16px; min-height: 0; aspect-ratio: 16/11; display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: none; border: 0; }
.proto-mobile > * { font-size: clamp(6px, 1.5cqi, 12px); }
.phone { position: relative; width: 17em; height: 34em; border-radius: 2.6em; background: #111; padding: 0.7em; box-shadow: 0 30px 60px rgba(30, 20, 80, .3), inset 0 0 0 2px #333; animation: pFloat 6s ease-in-out infinite; }
.notch { position: absolute; top: 1.1em; left: 50%; transform: translateX(-50%); width: 5.5em; height: 1.4em; border-radius: 1em; background: #000; z-index: 3; }
.screens { position: relative; width: 100%; height: 100%; border-radius: 2em; overflow: hidden; background: #fff; }
.scr { position: absolute; inset: 0; padding: 3.2em 1.2em 4em; display: grid; gap: 0.8em; align-content: start; animation: pScreens 9s infinite; opacity: 0; }
.scr2 { animation-delay: 3s; } .scr3 { animation-delay: 6s; }
.m-hi { font-weight: 700; font-size: 1.15em; color: #1d1d1f; }
.m-hi.c { text-align: center; }
.m-card { border-radius: 1.2em; padding: 1.1em; color: #fff; }
.m-card.grad { background: var(--brand-grad); }
.m-card span { font-size: 0.85em; opacity: .85; } .m-card strong { display: block; font-size: 1.6em; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6em; }
.m-grid i { aspect-ratio: 1; border-radius: 0.8em; background: #f1f1f6; }
.m-grid i:nth-child(1) { background: #dbeafe; } .m-grid i:nth-child(2) { background: #ede9fe; } .m-grid i:nth-child(3) { background: #fce7f3; } .m-grid i:nth-child(4) { background: #dcfce7; }
.m-list { display: grid; gap: 0.5em; }
.m-list span { height: 2.6em; border-radius: 0.8em; background: #f4f4f8; }
.m-prod { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.m-prod i { aspect-ratio: 1; border-radius: 1em; }
.p1 { background: linear-gradient(135deg, #c7d2fe, #818cf8); } .p2 { background: linear-gradient(135deg, #fbcfe8, #f472b6); } .p3 { background: linear-gradient(135deg, #bbf7d0, #34d399); } .p4 { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.m-btn { text-align: center; padding: 0.9em; border-radius: 99em; background: #0071e3; color: #fff; font-weight: 600; font-size: 0.95em; }
.m-ok { display: grid; place-items: center; margin-top: 3em; }
.m-ok svg { width: 6em; height: 6em; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-ok circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: pDrawLoop 3s 6s infinite; }
.m-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pDrawLoop 3s 6.3s infinite; }
.m-tab { position: absolute; left: 0.7em; right: 0.7em; bottom: 0.7em; height: 3.6em; border-radius: 0 0 2em 2em; background: rgba(255, 255, 255, .95); border-top: 1px solid #eee; display: flex; justify-content: space-around; align-items: center; }
.m-tab i { width: 1.4em; height: 1.4em; border-radius: 0.4em; background: #d4d4dc; }
.m-tab i:first-child { background: #0071e3; }
.m-float { position: absolute; padding: 0.7em 1em; border-radius: 1em; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); font-size: 0.95em; font-weight: 600; color: #1d1d1f; display: flex; gap: 0.5em; align-items: center; }
.m-float.f1 { left: 8%; top: 22%; animation: pFloat 5s ease-in-out infinite; }
.m-float.f2 { right: 8%; bottom: 22%; animation: pFloat 5s 1.5s ease-in-out infinite; }
.m-float b { color: var(--amber); }
.m-platform { position: absolute; right: 8%; top: 14%; display: flex; gap: 0.4em; }
.m-platform span { font-size: 0.85em; font-weight: 600; padding: 0.35em 0.8em; border-radius: 99em; background: rgba(255, 255, 255, .8); color: #444; }

/* ---------- Custom software ---------- */
.proto-custom-software-development { --p-acc: #7c3aed; }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4em; padding: 1.4em 1em; border-radius: 0.9em; background: radial-gradient(var(--p-line) 1px, transparent 1px) 0 0 / 1.2em 1.2em, var(--p-card); border: 1px solid var(--p-line); }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 6 6; animation: pDash 1s linear infinite; opacity: .6; }
.node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5em; padding: 0.9em 0.4em; border-radius: 0.8em; background: var(--p-bg); border: 1px solid var(--p-line); font-size: 0.85em; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); animation: pNodeOn 4s infinite; }
.node i { width: 2em; height: 2em; border-radius: 0.6em; background: var(--brand-grad); }
.n2 { animation-delay: 1s; } .n3 { animation-delay: 2s; } .n4 { animation-delay: 3s; }
.n2 i { background: linear-gradient(135deg, #f59e0b, #e11d48); } .n3 i { background: linear-gradient(135deg, #22d3ee, #2563eb); } .n4 i { background: linear-gradient(135deg, #34d399, #16a34a); }
.packet { position: absolute; z-index: 2; top: 50%; left: 10%; width: 0.8em; height: 0.8em; margin-top: -0.4em; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .25); animation: pPacket 4s linear infinite; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.kcol { background: var(--p-soft); border-radius: 0.8em; padding: 0.4em 0.6em 0.6em; }
.kcol .pcard-h { margin: 0.4em 0 0.5em; }
.kcard { position: relative; padding: 0.7em; margin-bottom: 0.45em; border-radius: 0.6em; background: var(--p-card); border: 1px solid var(--p-line); font-size: 0.85em; font-weight: 500; overflow: hidden; }
.kcard span { display: block; height: 0.3em; margin-top: 0.5em; border-radius: 1em; background: var(--p-line); }
.kcard.k-live span { background: linear-gradient(90deg, var(--violet) 0 var(--w, 30%), var(--p-line) var(--w, 30%)); animation: pProgress 5s ease-in-out infinite; }
.kcard.k-live { box-shadow: 0 0 0 2px rgba(124, 58, 237, .3); }

/* ---------- Fintech ---------- */
.proto-enterprise-fintech-solutions { --p-acc: #f59e0b; }
.fin > div:first-child { display: grid; gap: 1em; align-content: start; }
.wallet { position: relative; overflow: hidden; border-radius: 1em; padding: 1.2em; color: #fff; background: linear-gradient(135deg, #1e1b4b, #6b2fa0 60%, #a11e86); }
.wallet::after { content: ""; position: absolute; width: 14em; height: 14em; right: -5em; top: -6em; border-radius: 50%; background: rgba(255, 255, 255, .08); animation: pFloat 7s infinite; }
.wallet span { font-size: 0.85em; opacity: .8; } .wallet strong { display: block; font-size: 1.9em; margin: 0.2em 0; letter-spacing: -0.03em; } .wallet small { opacity: .7; }
.wallet svg { width: 100%; height: 3em; margin-top: 0.6em; }
.wallet path { fill: none; stroke: #fde68a; stroke-width: 2; stroke-dasharray: 100; animation: pDraw 4s ease-out infinite; }
.donut-wrap { display: flex; align-items: center; gap: 1em; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 0.9em; padding: 0.9em; }
.donut { width: 5.5em; height: 5.5em; transform: rotate(-90deg); flex: none; }
.donut circle { fill: none; stroke-width: 5; }
.donut .bg { stroke: var(--p-soft); }
.donut .seg { stroke-linecap: round; animation: pDonut 2s ease-out both; }
.donut .s1 { stroke: var(--violet); stroke-dasharray: 62 100; }
.donut .s2 { stroke: #f59e0b; stroke-dasharray: 28 100; stroke-dashoffset: -62; }
.legend { display: grid; gap: 0.3em; font-size: 0.82em; color: var(--p-mute); }
.legend i { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 0.2em; margin-right: 0.4em; }
.l1 { background: var(--violet); } .l2 { background: #f59e0b; } .l3 { background: var(--p-line); }
.shield { margin-left: auto; font-size: 0.75em; font-weight: 600; color: var(--green); padding: 0.2em 0.6em; border-radius: 99em; background: rgba(22, 163, 74, .12); }
.txs { display: grid; gap: 0.4em; }
.tx { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7em; align-items: center; padding: 0.5em; border-radius: 0.6em; background: var(--p-soft); font-size: 0.88em; animation: pSlide .6s both; animation-delay: calc(var(--i) * .15s); }
.tx i { width: 1.8em; height: 1.8em; border-radius: 0.5em; background: rgba(22, 163, 74, .18); }
.tx.out i { background: rgba(225, 29, 72, .18); }
.tx small { display: block; color: var(--p-mute); font-size: 0.85em; }
.tx.in b { color: #4ade80; } .tx.out b { color: #fb7185; }
.recon { margin-top: 0.7em; font-size: 0.82em; color: var(--p-mute); }
.recon b { color: var(--p-text); font-variant-numeric: tabular-nums; }

/* ---------- IoT ---------- */
.proto-iot-solutions { --p-acc: #a11e86; }
.kpi em { font-style: normal; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 1.6em; margin-top: 0.3em; }
.spark path { fill: none; stroke: var(--k); stroke-width: 1.6; stroke-dasharray: 100; animation: pDraw 3s ease-out infinite; }
.iot-map { width: 100%; height: auto; background: radial-gradient(var(--p-line) 1px, transparent 1px) 0 0 / 14px 14px; border-radius: 0.7em; }
.iot-map .link { stroke: #c4b5fd; stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.iot-map .pkt { fill: var(--violet); }
.snode circle { fill: #a11e86; }
.snode .ring { fill: none; stroke: #a11e86; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pRing 2s infinite; }
.snode:nth-of-type(2n) .ring { animation-delay: .7s; }
.gw rect { fill: #1d1d1f; } .gw text { fill: #fff; font: 700 12px var(--font); text-anchor: middle; }

/* ---------- Vision AI ---------- */
.proto-computer-vision-ai { --p-acc: #22d3ee; }
.cv-view { position: relative; border-radius: 0.9em; overflow: hidden; aspect-ratio: 16/10; background: #0b0f14; }
.cv-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-scene .wall { fill: #1b2230; } .cv-scene .floor { fill: #12161e; } .cv-scene .belt { fill: #2b3342; }
.cv-scene .belt-lines path { stroke: #4b5568; stroke-width: 2; stroke-dasharray: 10 10; animation: pBelt 1s linear infinite; }
.cv-scene .worker circle, .cv-scene .worker path { fill: #5b6b86; } .cv-scene .helmet { fill: #fbbf24; }
.cv-box { position: absolute; border: 2px solid #22d3ee; border-radius: 0.3em; }
.cv-box em { position: absolute; top: -1.6em; left: -2px; font-style: normal; font-size: 0.72em; font-weight: 700; padding: 0.15em 0.45em; border-radius: 0.3em; background: #22d3ee; color: #062026; white-space: nowrap; }
.box-item { position: absolute; inset: 12%; border-radius: 0.2em; background: linear-gradient(135deg, #c08b5c, #8d6440); }
.box-item.dmg { background: linear-gradient(135deg, #c08b5c 0 60%, #3a2617 60%); }
.b-box, .b-box2, .b-defect { width: 13%; height: 21%; top: 41%; animation: pConveyor 6s linear infinite; }
.b-box2 { animation-delay: -2s; } .b-defect { animation-delay: -4s; border-color: #fb7185; }
.b-defect em { background: #fb7185; color: #2a0710; }
.b-person { left: 74%; top: 18%; width: 13%; height: 38%; border-color: #4ade80; }
.b-person em { background: #4ade80; color: #052e14; }
.cv-scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .18), transparent); animation: pScan 3s ease-in-out infinite; }
.cv-hud { position: absolute; right: 0.6em; bottom: 0.5em; display: flex; gap: 0.4em; }
.cv-hud span { font-size: 0.7em; color: #a5f3fc; padding: 0.15em 0.5em; border-radius: 0.3em; background: rgba(0, 0, 0, .5); }
.big-num { font-size: 2.4em; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #22d3ee, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps { display: grid; gap: 0.35em; }
.st { display: flex; align-items: center; gap: 0.6em; font-size: 0.85em; padding: 0.35em 0.5em; border-radius: 0.5em; background: var(--p-soft); animation: pStep 5s infinite; animation-delay: calc(var(--i) * 1s); }
.st i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--p-mute); }
.acc { margin-top: 0.8em; display: grid; grid-template-columns: 1fr auto; gap: 0.3em; font-size: 0.85em; color: var(--p-mute); }
.acc b { color: #4ade80; }
.acc i { grid-column: 1 / -1; height: 0.4em; border-radius: 1em; background: var(--p-soft); overflow: hidden; }
.acc em { display: block; width: 96.4%; height: 100%; background: linear-gradient(90deg, #22d3ee, #4ade80); animation: pFill 2s ease-out both; }

/* ---------- VSS ---------- */
.proto-video-surveillance-system { --p-acc: #60a5fa; }
.plan { width: 100%; height: auto; }
.plan .room { fill: #121620; stroke: #2f3746; stroke-width: 2; }
.plan .wallp { stroke: #2f3746; stroke-width: 3; fill: none; }
.fov { transform: rotate(var(--r)); animation: pSweep 6s ease-in-out infinite alternate; }
.fov path { fill: rgba(96, 165, 250, .16); stroke: rgba(96, 165, 250, .35); }
.f1 { animation-delay: -1s; } .f2 { animation-delay: -2s; } .f3 { animation-delay: -3s; } .f4 { animation-delay: -4s; }
.vcam { fill: #60a5fa; stroke: #0b0f14; stroke-width: 2; }
.intruder { fill: #fbbf24; filter: drop-shadow(0 0 6px #fbbf24); }
.log { display: grid; gap: 0.35em; }
.lg { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6em; align-items: center; font-size: 0.82em; padding: 0.45em 0.5em; border-radius: 0.5em; background: var(--p-soft); }
.lg time { color: var(--p-mute); font-variant-numeric: tabular-nums; }
.lg i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--green); }
.lg i.warn { background: #fbbf24; animation: pBlink 1.2s infinite; } .lg i.bad { background: var(--p-mute); }
.stor { height: 0.6em; border-radius: 1em; background: var(--p-soft); overflow: hidden; }
.stor i { display: block; width: 57%; height: 100%; background: linear-gradient(90deg, #60a5fa, #a78bfa); animation: pFill 2s ease-out both; }
.stor-l { display: flex; justify-content: space-between; font-size: 0.75em; color: var(--p-mute); margin-top: 0.3em; }

/* ---------- Smart farming ---------- */
.proto-smart-farming-software { --p-acc: #16a34a; }
.valve { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.78em; font-weight: 600; color: var(--blue); }
.valve i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--blue); animation: pDot 1.2s infinite; }
.field { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35em; padding: 0.6em; border-radius: 0.8em; background: #6b4f2a; }
.field i { position: relative; aspect-ratio: 1.3; border-radius: 0.4em; overflow: hidden; }
.field .m1 { background: #d6a85c; } .field .m2 { background: #65a30d; } .field .m3 { background: #15803d; }
.field i.water::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(96, 165, 250, .85) 0 20%, transparent 22%) 0 0 / 0.9em 0.9em; animation: pRain 1.2s linear infinite; }
.legend-f { display: flex; gap: 1em; font-size: 0.8em; color: var(--p-mute); margin-top: 0.6em; }
.legend-f i { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 0.2em; margin-right: 0.35em; vertical-align: -0.1em; }
.legend-f .m1 { background: #d6a85c; } .legend-f .m2 { background: #65a30d; } .legend-f .m3 { background: #15803d; }
.stack-s { display: grid; gap: 0.8em; align-content: start; }
.weather { display: flex; align-items: center; gap: 0.8em; padding: 0.9em; border-radius: 0.9em; background: linear-gradient(135deg, #fef3c7, #e0f2fe); }
.weather strong { display: block; font-size: 1.4em; } .weather span { font-size: 0.8em; color: #57534e; }
.sun { width: 3em; height: 3em; flex: none; }
.sun circle { fill: #f59e0b; } .sun g { stroke: #f59e0b; stroke-width: 2.5; stroke-linecap: round; transform-origin: 20px 20px; animation: pSpin 10s linear infinite; }
.grow svg { width: 100%; height: 3.5em; }
.grow path { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 100; animation: pDraw 3.5s ease-out infinite; }

/* ---------- Keyframes ---------- */
@keyframes pDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pSlide { 0% { opacity: 0; transform: translateX(-10px); } 12%, 100% { opacity: 1; transform: none; } }
@keyframes pGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); } 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); } }
@keyframes pDraw { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes pDrawLoop { 0% { stroke-dashoffset: 152; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes pPan { from { transform: scale(1.08) translateX(-2%); } to { transform: scale(1.08) translateX(2%); } }
@keyframes pNoise { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } }
@keyframes pScanline { from { background-position: 0 100%; } to { background-position: 0 -200%; } }
@keyframes pWalk { 0%, 100% { left: 8%; top: 42%; } 50% { left: 62%; top: 36%; } }
@keyframes pSpin { to { transform: rotate(360deg); } }
@keyframes pGrow { from { transform: scaleY(0); } }
@keyframes pFlash { 0%, 100% { background: var(--p-soft); } 15%, 40% { background: rgba(37, 99, 235, .12); } }
@keyframes pFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pScreens { 0% { opacity: 0; transform: translateX(20px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateX(-20px); } }
@keyframes pDash { to { stroke-dashoffset: -12; } }
@keyframes pNodeOn { 0%, 30%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, .05); transform: none; } 10% { box-shadow: 0 0 0 3px rgba(124, 58, 237, .35); transform: translateY(-3px); } }
@keyframes pPacket { 0% { left: 10%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 88%; opacity: 0; } }
@keyframes pProgress { 0% { --w: 20%; } 100% { --w: 90%; } }
@keyframes pDonut { from { stroke-dasharray: 0 100; } }
@keyframes pRing { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes pBelt { to { stroke-dashoffset: -20; } }
@keyframes pConveyor { 0% { left: -14%; } 100% { left: 70%; } }
@keyframes pScan { 0%, 100% { top: -10%; } 50% { top: 80%; } }
@keyframes pStep { 0%, 100% { background: var(--p-soft); } 10%, 20% { background: rgba(34, 211, 238, .18); } }
@keyframes pFill { from { width: 0; } }
@keyframes pSweep { from { transform: rotate(calc(var(--r) - 18deg)); } to { transform: rotate(calc(var(--r) + 18deg)); } }
@keyframes pRain { from { background-position: 0 -0.9em; } to { background-position: 0 0.9em; } }

@property --w { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

/* pause all prototype animation when off-screen (set by JS) — saves CPU/battery */
.proto.is-paused, .proto.is-paused * { animation-play-state: paused !important; }

/* Responsive: hide sidebar on narrow prototypes */
@container (max-width: 520px) {
	.pw-app { grid-template-columns: 1fr; }
	.pw-side { display: none; }
	.kpis { grid-template-columns: repeat(2, 1fr); }
	.cols2, .cols2.wide-left, .vms { grid-template-columns: 1fr; }
	.vms-side { display: none; }
	.pw-search { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.proto *, .proto { animation: none !important; }
	.scr1 { opacity: 1; }
}
