/* ============================================================
   HOW IT WORKS: assistant -> GripMCP -> your site demo
   Three labelled panels joined by two wires. Driven by hw-demo.js.
   ============================================================ */

@property --hwd-a {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

/* Hero makes room so the stage can straddle it. */
.hw-hero { padding-bottom: 250px; }

.hwd { position: relative; z-index: 2; margin-top: -196px; padding-bottom: 12px; }
.hwd__wrap { position: relative; isolation: isolate; }

.hwd__aura {
	position: absolute; inset: 8% 3% -3%; z-index: -1; border-radius: 48px;
	background: conic-gradient(from var(--hwd-a), #4c8dff, #7c3aed, #22d3ee, #8b5cf6, #4c8dff);
	filter: blur(64px); opacity: .4;
	animation: hwd-spin 9s linear infinite;
	pointer-events: none;
}
@keyframes hwd-spin { to { --hwd-a: 360deg; } }

.hwd__stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 280px) 60px minmax(0, 262px) 60px minmax(0, 1fr);
	height: 560px; padding: 14px;
	border-radius: 28px;
	background: linear-gradient(180deg, #141d3a 0%, #0a1020 100%);
	border: 1px solid rgba(255,255,255,.1);
	box-shadow: 0 50px 100px -40px rgba(20,16,80,.65), inset 0 1px 0 rgba(255,255,255,.07);
}

/* ---------- Shared panel chrome ---------- */
.hwd__panel {
	display: flex; flex-direction: column; min-height: 0;
	border-radius: 18px; overflow: hidden;
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(255,255,255,.08);
}
.hwd__head {
	flex: none; display: flex; align-items: center; gap: 9px;
	padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.hwd__n {
	flex: none; width: 20px; height: 20px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 700;
	color: #fff; background: var(--grad);
	box-shadow: 0 4px 12px -4px rgba(124,58,237,.8);
}
.hwd__logo { flex: none; width: 26px; height: 26px; border-radius: 8px; }
.hwd__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hwd__who strong { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.hwd__who span {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px; color: rgba(255,255,255,.48);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 1. Chat ---------- */
.hwd__log {
	flex: 1; min-height: 0; overflow: hidden;
	display: flex; flex-direction: column; gap: 12px;
	padding: 18px 12px 8px;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30px);
	mask-image: linear-gradient(180deg, transparent 0, #000 30px);
	transition: opacity .5s ease;
}
.hwd__log > * { flex-shrink: 0; }

.hwd-msg { font-size: 13px; line-height: 1.5; animation: hwd-pop .38s cubic-bezier(.2,.8,.2,1) both; }
.hwd-msg--you {
	align-self: flex-end; max-width: 90%;
	padding: 8px 12px; border-radius: 14px 14px 4px 14px;
	background: var(--grad); color: #fff;
	box-shadow: 0 10px 24px -12px rgba(76,141,255,.75);
}
.hwd-msg--ai { display: flex; gap: 8px; align-items: flex-start; }
.hwd-msg__av {
	flex: none; width: 22px; height: 22px; border-radius: 7px;
	display: grid; place-items: center; color: #fff;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
}
.hwd-msg__av svg { width: 11px; height: 11px; }
.hwd-msg__body { flex: 1; min-width: 0; }

.hwd-dots { display: inline-flex; gap: 4px; padding: 8px 2px; }
.hwd-dots i {
	width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55);
	animation: hwd-dot 1s ease-in-out infinite;
}
.hwd-dots i:nth-child(2) { animation-delay: .15s; }
.hwd-dots i:nth-child(3) { animation-delay: .3s; }

.hwd-tools {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 11px; padding: 2px 0;
}
.hwd-tool {
	display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 8px;
	padding: 7px 10px; animation: hwd-pop .32s cubic-bezier(.2,.8,.2,1) both;
}
.hwd-tool + .hwd-tool { border-top: 1px solid rgba(255,255,255,.06); }
.hwd-tool__ic {
	grid-row: span 2; width: 13px; height: 13px; margin-top: 2px; border-radius: 50%;
	border: 2px solid rgba(138,180,255,.25); border-top-color: #8ab4ff;
	animation: hwd-rot .7s linear infinite;
}
.hwd-tool code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: #cbd8f5; }
.hwd-tool__st {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10px; color: rgba(255,255,255,.4);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hwd-tool.is-hold .hwd-tool__ic { animation: hwd-pulse 1.1s ease-in-out infinite; border: 2px solid #f59e0b; background: rgba(245,158,11,.25); }
.hwd-tool.is-hold .hwd-tool__st { color: #fcd34d; }
.hwd-tool.is-done .hwd-tool__ic,
.hwd__checks li.is-ok i {
	animation: none; border: 0;
	background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.5 3.8'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.hwd-tool.is-done .hwd-tool__st { color: #6ee7b7; }

.hwd-reply { margin-top: 9px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.86); }

.hwd__composer {
	flex: none; display: flex; align-items: center; gap: 8px;
	margin: 8px 10px 10px; padding: 9px 9px 9px 12px;
	border-radius: 13px;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.hwd__composer.is-typing { border-color: rgba(124,139,255,.55); box-shadow: 0 0 0 4px rgba(76,141,255,.12); }
.hwd__input { flex: 1; min-width: 0; min-height: 19px; font-size: 13px; line-height: 1.45; color: #fff; }
.hwd__ph { color: rgba(255,255,255,.35); }
.hwd__caret {
	display: inline-block; width: 2px; height: 14px; margin-left: 1px; vertical-align: -2px;
	background: #8ab4ff; animation: hwd-blink 1s steps(1) infinite;
}
.hwd__composer:not(.is-typing) .hwd__caret { display: none; }
.hwd__send {
	flex: none; width: 30px; height: 30px; border-radius: 9px;
	display: grid; place-items: center;
	background: rgba(255,255,255,.08); color: rgba(255,255,255,.45);
	transition: background .2s ease, color .2s ease, transform .18s ease;
}
.hwd__send svg { width: 14px; height: 14px; }
.hwd__composer.is-typing .hwd__send { background: var(--grad); color: #fff; }
.hwd__composer.is-send .hwd__send { transform: scale(.84); }

/* ---------- Wires ---------- */
.hwd__wire { position: relative; }
.hwd__wire::before {
	content: ""; position: absolute; left: 4px; right: 4px; top: 50%;
	height: 2px; margin-top: -1px;
	background: repeating-linear-gradient(90deg, rgba(138,180,255,.75) 0 6px, transparent 6px 11px);
	opacity: .3; transition: opacity .3s ease;
}
.hwd__wire.is-busy::before { opacity: 1; animation: hwd-flow .5s linear infinite; }
.hwd__wire-tag {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -26px);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 9.5px; line-height: 1.3; white-space: nowrap;
	color: rgba(255,255,255,.45);
}
.hwd__wire-tag--b { transform: translate(-50%, 11px); }
.hwd-packet {
	position: absolute; top: 50%; left: 0; z-index: 2;
	width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
	background: #8ab4ff; box-shadow: 0 0 14px 4px rgba(76,141,255,.75);
	animation: hwd-x .7s cubic-bezier(.5,0,.5,1) forwards;
}
.hwd-packet--back { background: #6ee7b7; box-shadow: 0 0 14px 4px rgba(16,185,129,.65); animation-direction: reverse; }

/* ---------- 2. GripMCP ---------- */
.hwd__plug { transition: border-color .35s ease, box-shadow .35s ease; }
.hwd__plug.is-live {
	border-color: rgba(139,92,246,.6);
	box-shadow: 0 0 0 4px rgba(124,58,237,.12), 0 20px 50px -20px rgba(124,58,237,.65);
}
.hwd__call {
	flex: none; margin: 12px 12px 4px; padding: 9px 11px;
	min-height: 74px; border-radius: 11px;
	background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08);
	font-family: "JetBrains Mono", ui-monospace, monospace;
}
.hwd__call-k {
	display: block; margin-bottom: 4px;
	font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #a78bfa;
}
.hwd__call code { font-family: inherit; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.35); }
.hwd__plug.is-live .hwd__call code { color: #fff; }
.hwd__call pre {
	margin: 3px 0 0; white-space: pre-wrap; word-break: break-all;
	font-family: inherit; font-size: 10.5px; line-height: 1.5; color: #93a4c8;
}

.hwd__checks { flex: none; padding: 4px 12px 6px; }
.hwd__checks li {
	position: relative;
	display: grid; grid-template-columns: 16px auto minmax(0, 1fr); align-items: center; gap: 8px;
	padding: 5px 0; font-size: 12px; color: rgba(255,255,255,.38);
	transition: color .25s ease;
}
.hwd__checks li + li::before {
	content: ""; position: absolute; left: 7px; top: -6px; width: 2px; height: 12px;
	background: rgba(255,255,255,.08);
}
.hwd__checks i {
	position: relative; z-index: 1;
	width: 16px; height: 16px; border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.2); background: #11182e;
}
.hwd__checks em {
	font-style: normal; text-align: right;
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hwd__checks li.is-active { color: #fff; }
.hwd__checks li.is-active i { border: 2px solid rgba(138,180,255,.25); border-top-color: #8ab4ff; animation: hwd-rot .7s linear infinite; }
.hwd__checks li.is-ok { color: rgba(255,255,255,.9); }
.hwd__checks li.is-ok em { color: #6ee7b7; }
.hwd__checks li.is-wait { color: #fff; }
.hwd__checks li.is-wait i { border: 2px solid #f59e0b; background: rgba(245,158,11,.25); animation: hwd-pulse 1.1s ease-in-out infinite; }
.hwd__checks li.is-wait em { color: #fcd34d; }
.hwd__checks li.is-skip { color: rgba(255,255,255,.6); }
.hwd__checks li.is-skip i { border-style: dashed; }
.hwd__checks li.is-skip em { color: rgba(255,255,255,.38); }

.hwd__audit {
	flex: 1; min-height: 0; overflow: hidden;
	margin: 6px 12px 12px; padding: 8px 10px;
	border-radius: 11px; border: 1px dashed rgba(255,255,255,.12);
}
.hwd__audit-h {
	display: block; margin-bottom: 4px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4);
}
.hwd__audit li {
	display: flex; justify-content: space-between; gap: 8px; padding: 2px 0;
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px;
	color: rgba(255,255,255,.62); animation: hwd-pop .35s ease both;
}
.hwd__audit li span { color: rgba(255,255,255,.38); white-space: nowrap; }

/* ---------- 3. The site ---------- */
.hwd__chrome { flex: none; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.hwd__url {
	display: flex; align-items: center; gap: 6px;
	padding: 5px 10px; border-radius: 8px;
	background: rgba(255,255,255,.06);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px; color: rgba(255,255,255,.45);
	overflow: hidden; white-space: nowrap;
}
.hwd__url svg { flex: none; width: 10px; height: 10px; color: #6ee7b7; }
.hwd__url b { font-weight: 400; color: #fff; overflow: hidden; text-overflow: ellipsis; }

.hwd__view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f0f0f1; }
.hwd__load {
	position: absolute; top: 0; left: 0; z-index: 10;
	height: 2px; width: 0; background: var(--grad); opacity: 0;
}
.hwd__load.is-on { opacity: 1; animation: hwd-load 1.2s ease-in-out infinite; }
.hwd__canvas {
	position: absolute; top: 0; left: 0; width: 460px;
	transform-origin: 0 0; overflow: hidden;
	transition: opacity .5s ease;
}

/* Mock wp-admin */
.wpa {
	height: 100%; display: flex; flex-direction: column;
	font-family: var(--font-body); font-size: 11px; line-height: 1.4; color: #1d2327; background: #f0f0f1;
}
.wpa__bar {
	flex: none; height: 26px; display: flex; align-items: center; justify-content: space-between;
	padding: 0 10px; background: #1d2327; color: #c3c4c7; font-size: 10px;
}
.wpa__bar > span { display: inline-flex; align-items: center; gap: 6px; }
.wpa__bar svg { width: 12px; height: 12px; }
.wpa__bar b { color: #f0f0f1; font-weight: 600; }
.wpa__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 102px minmax(0, 1fr); }
.wpa__side { background: #1d2327; padding: 4px 0; }
.wpa__side li {
	display: flex; align-items: center; gap: 7px;
	padding: 6px 10px; font-size: 10.5px; color: #c3c4c7;
	transition: background .3s ease, color .3s ease;
}
.wpa__side i { flex: none; width: 11px; height: 11px; border-radius: 3px; background: rgba(240,240,241,.3); }
.wpa__side li.is-on { background: #2271b1; color: #fff; }
.wpa__side li.is-on i { background: #fff; }
.wpa__side .wpa__gm i { background: var(--grad); }

.wpa__main { position: relative; min-width: 0; padding: 12px 14px; overflow: hidden; }
.wpa__h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 15px; font-weight: 600; color: #1d2327; }
.wpa__h span {
	padding: 2px 7px; border: 1px solid #2271b1; border-radius: 3px;
	font-size: 10px; font-weight: 500; color: #2271b1;
}
.wpa__screen { display: none; }
.wpa__screen.is-on { display: block; animation: hwd-fade .35s ease both; }

.wpa__notice {
	display: none; margin: 0 0 9px; padding: 6px 10px;
	background: #fff; border-left: 4px solid #00a32a;
	box-shadow: 0 1px 1px rgba(0,0,0,.04); font-size: 10.5px;
}
.wpa__notice.is-on { display: block; animation: hwd-pop .35s ease both; }

.wpa-table { background: #fff; border: 1px solid #c3c4c7; }
.wpa-row {
	display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center;
	max-height: 60px; padding: 7px 9px; overflow: hidden;
	border-bottom: 1px solid #f0f0f1;
	transition: max-height .5s ease, padding .5s ease, opacity .35s ease, border-color .5s ease;
}
.wpa-row:last-child { border-bottom: 0; }
.wpa-row > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpa-row--h { font-weight: 600; color: #50575e; border-bottom-color: #c3c4c7; }
.wpa-row a { color: #2271b1; font-weight: 600; }
.wpa-row.is-flash { animation: wpa-flash 1.8s ease both; }
.wpa-row.is-gone { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; border-color: transparent; }

.wpa-tag {
	justify-self: start; display: inline-block;
	padding: 1px 6px; border-radius: 3px;
	font-size: 9.5px; font-weight: 600; font-style: normal;
	transition: background .4s ease, color .4s ease;
}
.wpa-tag--draft { background: #fcf0c3; color: #7a5b00; }
.wpa-tag--ok { background: #d7f2df; color: #007017; }
.wpa-tag--sale { margin-left: 4px; background: #d63638; color: #fff; display: none; }
.wpa-tag--sale.is-on { display: inline-block; animation: hwd-pop .35s ease both; }
.wpa-in { color: #007017; }
.wpa-row s { color: #8c8f94; margin-right: 3px; }
.wpa-row b { color: #1d2327; }

.wpa-upd {
	justify-self: start; padding: 2px 7px;
	border-left: 3px solid #dba617; background: #fcf9e8; color: #7a5b00; font-size: 10px;
	transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.wpa-upd.is-going { border-color: #72aee6; background: #f0f6fc; color: #135e96; }
.wpa-upd.is-done { border-color: #00a32a; background: #edfaef; color: #007017; }
.wpa-cur { color: #8c8f94; }
.wpa-spam { color: #8a2424; }

.wpa-box { padding: 9px; background: #fff; border: 1px solid #c3c4c7; }
.wpa-box__h { display: block; margin-bottom: 8px; font-weight: 600; color: #50575e; }
.wpa-mi {
	display: flex; justify-content: space-between; align-items: center;
	max-width: 270px; margin-bottom: 5px; padding: 6px 9px;
	background: #f6f7f7; border: 1px solid #dcdcde; font-weight: 600;
}
.wpa-mi small { font-weight: 400; color: #787c82; }
.wpa-mi--new {
	max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden;
	border-color: #2271b1; background: #f0f6fc;
	transition: max-height .45s ease, padding .45s ease, margin .45s ease, opacity .35s ease;
}
.wpa-mi--new.is-on { max-height: 40px; margin-bottom: 5px; padding-top: 6px; padding-bottom: 6px; opacity: 1; }

/* Approval page overlay */
.wpa-ok {
	position: absolute; inset: 0; z-index: 3;
	display: grid; place-items: center; padding: 12px;
	background: rgba(29,35,39,.35);
	opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.wpa-ok.is-on { opacity: 1; }
.wpa-ok__card {
	width: 100%; max-width: 290px; padding: 13px 14px;
	background: #fff; border-radius: 8px; border-top: 3px solid #7c3aed;
	box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
	transform: translateY(8px); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.wpa-ok.is-on .wpa-ok__card { transform: none; }
.wpa-ok__k {
	display: flex; align-items: center; gap: 6px;
	font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7c3aed;
}
.wpa-ok__k img { width: 14px; height: 14px; }
.wpa-ok__card b { display: block; margin-top: 6px; font-size: 13px; }
.wpa-ok__card p { margin-top: 4px; font-size: 10.5px; line-height: 1.5; color: #50575e; }
.wpa-ok__row { display: flex; gap: 6px; margin-top: 10px; }
.wpa-ok__btn {
	padding: 5px 12px; border-radius: 4px;
	font-size: 10.5px; font-weight: 600; color: #fff; background: #2271b1;
	transition: transform .15s ease, background .15s ease;
}
.wpa-ok__btn.is-press { transform: scale(.92); background: #135e96; }
.wpa-ok__btn--ghost { color: #2271b1; background: #fff; border: 1px solid #2271b1; }

/* The human's cursor: only you approve. */
.hwd-you {
	position: absolute; top: 0; left: 0; z-index: 9; pointer-events: none;
	display: flex; align-items: flex-start;
	opacity: 0; transform: translate(400px, 330px);
	transition: transform .8s cubic-bezier(.65,0,.35,1), opacity .3s ease;
}
.hwd-you.is-on { opacity: 1; }
.hwd-you svg { width: 18px; height: 18px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); transition: transform .15s ease; }
.hwd-you.is-click svg { transform: scale(.82); }
.hwd-you span {
	margin: 14px 0 0 -3px; padding: 2px 7px; border-radius: 999px;
	font-size: 10px; font-weight: 600; color: #fff; background: #1d2327;
}

/* States set by the script. */
.hwd__stage.is-instant *,
.hwd__stage.is-instant *::before,
.hwd__stage.is-instant *::after { transition: none !important; animation-duration: 0s !important; }
.hwd__stage.is-paused *,
.hwd__stage.is-paused *::before,
.hwd__stage.is-paused *::after { animation-play-state: paused !important; }
.hwd__stage.is-fading .hwd__log,
.hwd__stage.is-fading .hwd__canvas { opacity: 0; }

/* ---------- Scene rail ---------- */
.hwd__rail { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hwd__scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hwd__scene {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; gap: 9px;
	padding: 9px 16px 11px; border-radius: 12px;
	background: #fff; border: 1px solid var(--line);
	font: 600 14px/1.2 var(--font-body); color: var(--muted);
	cursor: pointer; transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hwd__scene:hover { color: var(--ink); border-color: #cfd8ea; }
.hwd__scene-n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--muted-2); }
.hwd__scene.is-active { color: var(--ink); border-color: #c9d6f5; box-shadow: var(--shadow-sm); }
.hwd__scene.is-active .hwd__scene-n,
.hwd__scene.is-done .hwd__scene-n { color: var(--blue-deep); }
.hwd__scene-bar { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--grad); transition: width .6s ease; }
.hwd__cap { max-width: 640px; margin: 16px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }
.hwd__cap strong { color: var(--ink); font-weight: 600; }

/* ---------- Safety cards: four across on this page ---------- */
.hw-guard-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .hw-guard-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hw-guard-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Keyframes ---------- */
@keyframes hwd-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes hwd-fade { from { opacity: 0; } }
@keyframes hwd-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes hwd-rot { to { transform: rotate(360deg); } }
@keyframes hwd-pulse { 50% { box-shadow: 0 0 0 5px rgba(245,158,11,.2); } }
@keyframes hwd-blink { 50% { opacity: 0; } }
@keyframes hwd-flow { to { background-position: 11px 0; } }
@keyframes hwd-flow-y { to { background-position: 0 11px; } }
@keyframes hwd-x { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes hwd-y { from { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes hwd-load { 0% { left: 0; width: 0; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 0; } }
@keyframes wpa-flash { 0%, 35% { background: #fcf0c3; } 100% { background: #fff; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.hw-hero { padding-bottom: 200px; }
	.hwd { margin-top: -150px; }
	.hwd__stage {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 300px 56px auto 56px 340px;
		height: auto; max-width: 640px; margin-inline: auto;
	}
	.hwd__audit { flex: none; height: 76px; }
	.hwd__wire::before {
		left: 50%; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; margin: 0 0 0 -1px;
		background: repeating-linear-gradient(180deg, rgba(138,180,255,.75) 0 6px, transparent 6px 11px);
	}
	.hwd__wire.is-busy::before { animation-name: hwd-flow-y; }
	.hwd__wire-tag { transform: translate(-100%, -50%); margin-left: -14px; text-align: right; }
	.hwd__wire-tag--b { transform: translate(0, -50%); margin-left: 14px; text-align: left; }
	.hwd-packet { top: 0; left: 50%; animation-name: hwd-y; }
}
@media (max-width: 620px) {
	.hw-hero { padding-bottom: 170px; }
	.hwd { margin-top: -120px; }
	.hwd__stage { grid-template-rows: 290px 50px auto 50px 300px; padding: 10px; border-radius: 22px; }
	.hwd__scene { padding: 8px 12px 10px; font-size: 13px; }
	.hwd__cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.hwd__aura { animation: none; }
}
