/* Home page only (round 3: the pixel-arcade editing suite). Shared parts live in base.css / suite.css / y2k.css;
   plan cards in pages/plans.css. */

.s-head.split { justify-items: start; }
.s-head.split > div { display: grid; gap: 18px; }

/* ---------- 1. hero: green pixel field, voxel bolt, copy, then the workstation tilted back ---------- */
.hero { position: relative; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(16px, 3vw, 40px)); }
/* the glyph field (assets/js/glyphs.js; the gradient shows until it starts, and stays without WebGL), fading out where
   the workstation starts */
.hero > .field { position: absolute; left: 0; right: 0; top: 0; bottom: clamp(200px, 22vw, 300px); overflow: hidden; pointer-events: none;
  background:
    radial-gradient(36% 46% at 6% 40%, rgb(0 255 133 / .13), transparent 72%),
    radial-gradient(40% 50% at 94% 46%, rgb(0 255 133 / .12), transparent 72%),
    var(--bg);
  -webkit-mask-image: linear-gradient(#000 64%, transparent);
          mask-image: linear-gradient(#000 64%, transparent); }
.hero > .field > .glyphs { position: absolute; inset: 0; }
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px clamp(28px, 4vw, 64px); align-items: center; }
.vox-stage { position: relative; display: grid; place-items: center; min-height: clamp(340px, 36vw, 520px); }
.vox-stage .vox { --vs: clamp(220px, 25vw, 360px); }
.vox-stage .hud.h-tl { left: 0; top: 8px; } .vox-stage .hud.h-br { right: 0; bottom: 8px; }
.copy { position: relative; display: grid; gap: 26px; padding-block: 12px; }
.copy h1 { font-size: clamp(3.2rem, 1rem + 5.6vw, 7.25rem); line-height: .9; letter-spacing: -0.055em; }
.copy h1 .hl { color: var(--green); }
.copy h1 .pt { color: var(--yellow); }
.copy .lead { color: #cfe3d8; max-width: 36ch; line-height: 1.5; }
.copy .lead strong { color: #fff; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.price-line { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: #a9c7b8; }
.price-line b { color: var(--yellow); font-weight: 600; }

/* the workstation: a whole editing suite, tilted back in 3D; the scroll stands it up (home.js sets --tilt) */
.rig-3d { position: relative; margin-top: clamp(28px, 4vw, 56px); perspective: 2400px; perspective-origin: 50% 0; }
.rig { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)); background: #0b0d10; will-change: transform;
  box-shadow: 0 -4px 0 0 #3a3f49, 0 4px 0 0 #3a3f49, -4px 0 0 0 #3a3f49, 4px 0 0 0 #3a3f49, 18px 18px 0 0 rgb(0 0 0 / .55); }
.rig-grid { display: grid; grid-template-columns: 228px minmax(0, 1fr) 304px; grid-template-areas: "proj mon gp" "tl tl tl"; gap: 12px; padding: 12px; }
.rig .win { box-shadow: 0 -3px 0 0 #2f343d, 0 3px 0 0 #2f343d, -3px 0 0 0 #2f343d, 3px 0 0 0 #2f343d; }
.proj-win { grid-area: proj; } .mon-win { grid-area: mon; } .gp-win { grid-area: gp; } .tl-win { grid-area: tl; }
.proj-win .proj { flex: 1; overflow: hidden; }
.gp-win .gp { flex: 1; }
.mon-win .mon { flex: 1; }
.chips-row { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 2px solid #0b0c0f; background: var(--panel-2); }
.chips-row .demo-lbl { flex: none; color: var(--yellow); }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; }

/* ---------- 1b. the prompt band ---------- */
/* the prompt band itself lives in y2k.css (shared with /skills) */
.mq { margin-top: clamp(72px, 9vw, 128px); }

/* ---------- 2. pain points: manual job | the sentence | a little timeline playing the Gaffo job ---------- */
.pains { list-style: none; display: grid; gap: 26px; }
.pain { --lab: var(--green); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(280px, 380px); gap: 20px clamp(24px, 3vw, 44px); align-items: center;
  padding: 24px 26px 24px 32px; background: var(--bg-2);
  box-shadow: inset 8px 0 0 0 var(--lab), 0 -3px 0 0 var(--edge-hi), 0 3px 0 0 var(--edge-hi), -3px 0 0 0 var(--edge-hi), 3px 0 0 0 var(--edge-hi), 9px 9px 0 0 rgb(0 0 0 / .5); }
.pain .old h3 { font-size: var(--t-h3); }
.pain .old p { margin-top: 8px; color: var(--ink-3); max-width: 40ch; }
.pain .new { display: grid; gap: 8px; align-content: start; }
.pain .say { font: 600 1.0625rem/1.35 var(--f-mono); color: var(--lab); min-height: 1.35em; }
.pain .say::before { content: "> "; color: var(--ink-3); }
.pain .say .ty.typing::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: rec 1s steps(1) infinite; }
.pain .new p:not(.say) { color: var(--ink-2); max-width: 52ch; }
.more { margin-top: 32px; }

.mini { align-self: stretch; min-height: 120px; }
.mini .m-body { position: relative; flex: 1; display: grid; align-content: center; gap: 6px; padding: 10px; background: var(--well); }
.m-lane { position: relative; height: 26px; background: #111318; container-type: inline-size; }
.m-clip { position: absolute; top: 2px; bottom: 2px; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); overflow: hidden; white-space: nowrap;
  background: var(--clip-v); color: var(--ink-dark); font: 700 .625rem/1 var(--f-text); padding: 6px 5px 0;
  box-shadow: inset -2px -2px 0 0 rgb(0 0 0 / .28), inset 2px 2px 0 0 rgb(255 255 255 / .28); }
.m-lane.a .m-clip { background: var(--clip-a); } .m-lane.t .m-clip { background: var(--clip-t); } .m-lane.y .m-clip { background: var(--clip-y); } .m-clip.v2 { background: var(--clip-g); }
.m-gap { position: absolute; top: 2px; bottom: 2px; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); transform-origin: left center;
  background: repeating-linear-gradient(135deg, var(--pink) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 2px var(--pink); }
/* the loops run only while the row is on screen (.pain.on, set by home.js) */
.mini-ums .m-clip, .mini-beats .m-clip { animation: m-shift 5s var(--ease-in-out) infinite paused; }
.mini-ums .m-gap { animation: m-gap 5s var(--ease-in-out) infinite paused; }
@keyframes m-shift { 0%, 30% { transform: none; } 48%, 82% { transform: translateX(calc(var(--dx, 0) * 1cqw)); } 96%, 100% { transform: none; } }
@keyframes m-gap { 0%, 12% { opacity: 1; transform: none; } 16% { opacity: .25; } 20% { opacity: 1; } 24% { opacity: .25; } 28% { opacity: 1; transform: none; }
  46%, 82% { opacity: 0; transform: translateX(calc(var(--dx, 0) * 1cqw)) scaleX(0); } 96%, 100% { opacity: 1; transform: none; } }
.m-ruler { position: relative; height: 10px; }
.m-ruler i { position: absolute; top: 0; left: calc(var(--s) * 1%); width: 10px; height: 10px; background: var(--yellow-lo); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: m-beat 5s steps(1) infinite paused; }
@keyframes m-beat { 0%, 47% { background: var(--yellow-lo); } 48%, 82% { background: var(--yellow); } 83%, 100% { background: var(--yellow-lo); } }
.mini-caps .m-lane.t .m-clip { opacity: 0; animation: m-cap 4.8s var(--ease-out) infinite paused; animation-delay: calc(var(--i) * .22s - 2s); }
@keyframes m-cap { 0%, 6% { opacity: 0; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.08); } 16%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: scale(.6); } }
.m-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.m-mon { position: relative; min-height: 70px; background: #1a2a36 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23263c4c'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23263c4c'/%3E%3C/svg%3E") 0 0 / 4px 4px; overflow: hidden; }
.m-mon .lt-name, .m-mon .lt-role { position: absolute; left: 8px; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: m-wipe 5s steps(10) infinite paused; animation-delay: -2.4s; }
.m-mon .lt-name { bottom: 22px; padding: 4px 6px 3px; background: var(--violet); color: var(--ink-dark); font: 700 .75rem/1 var(--f-display); box-shadow: inset 3px 0 0 var(--yellow); }
.m-mon .lt-role { bottom: 8px; padding: 3px 6px 2px; background: #0b0c0f; color: var(--ink-2); font: 500 .625rem/1 var(--f-text); animation-delay: -2.15s; }
@keyframes m-wipe { 0%, 14% { clip-path: inset(0 100% 0 0); } 34%, 80% { clip-path: inset(0 0 0 0); } 92%, 100% { clip-path: inset(0 100% 0 0); } }
.m-keys { position: relative; display: grid; grid-auto-rows: 22px; align-content: center; background: #111318; padding: 2px 0; }
.m-keys span { display: flex; align-items: center; padding-left: 6px; font: 500 .625rem/1 var(--f-text); color: var(--ink-3); }
.m-keys i { position: absolute; left: calc(46% + var(--s) * .5%); width: 9px; height: 9px; background: var(--yellow); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: 0;
  animation: m-key 5s steps(2) infinite paused; animation-delay: calc(var(--i) * .16s - 2.2s); }
.m-keys i:nth-of-type(1), .m-keys i:nth-of-type(2) { top: 8px; } .m-keys i:nth-of-type(3), .m-keys i:nth-of-type(4) { top: 30px; } .m-keys i:nth-of-type(5), .m-keys i:nth-of-type(6) { top: 52px; }
@keyframes m-key { 0%, 8% { opacity: 0; transform: scale(.4); } 14%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.4); } }
.m-reframe { place-items: center; }
.m-frame { position: relative; width: min(100%, 170px); aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(var(--sky) 0 55%, var(--green-lo) 55% 100%); box-shadow: 0 0 0 2px #000; }
.m-subject { position: absolute; left: 50%; bottom: 18%; width: 14%; height: 52%; transform: translateX(-50%); background: var(--yellow);
  clip-path: polygon(30% 0, 70% 0, 70% 30%, 100% 30%, 100% 100%, 0 100%, 0 30%, 30% 30%); }
.m-mask { position: absolute; top: 0; bottom: 0; width: 34.2%; background: rgb(8 9 11 / .88); transform: scaleX(0); animation: m-mask 5s var(--ease-in-out) infinite paused; }
.m-mask.l { left: 0; transform-origin: left center; } .m-mask.r { right: 0; transform-origin: right center; }
@keyframes m-mask { 0%, 26% { transform: scaleX(0); } 44%, 82% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
.m-ar { position: absolute; left: 6px; top: 6px; color: var(--ink-dark); background: var(--orange); padding: 3px 4px 2px; font-size: .625rem; animation: m-ar 5s steps(1) infinite paused; }
.m-ar.v { left: auto; right: 50%; transform: translateX(50%); top: auto; bottom: 6px; animation-name: m-ar-v; }
@keyframes m-ar { 0%, 40% { opacity: 1; } 41%, 90% { opacity: 0; } 91%, 100% { opacity: 1; } }
@keyframes m-ar-v { 0%, 40% { opacity: 0; } 41%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
.pain.on .mini *, .pain.on .mini *::before, .pain.on .mini *::after { animation-play-state: running; }

/* ---------- 3. pipeline: steps scroll past, the view stays and scrubs ---------- */
.pipe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pipe-steps { list-style: none; display: grid; }
.pstep { --c: var(--green); padding: 22px 0 22px 26px; border-left: 4px solid var(--edge); min-height: 30vh; display: grid; align-content: center; gap: 8px; transition: border-color var(--d-ui) ease; }
.pstep:nth-child(2) { --c: var(--sky); } .pstep:nth-child(3) { --c: var(--yellow); } .pstep:nth-child(4) { --c: var(--violet); } .pstep:nth-child(5) { --c: var(--pink); } .pstep:nth-child(6) { --c: var(--orange); }
.pstep h3 { font-size: var(--t-h3); color: var(--ink-3); transition: color var(--d-ui) ease; }
.pstep p { color: var(--ink-3); max-width: 44ch; transition: color var(--d-ui) ease; }
.pstep.on { border-left-color: var(--c); }
.pstep.on h3 { color: var(--c); } .pstep.on p { color: var(--ink-2); }
html:not(.js) .pstep h3 { color: var(--ink); } html:not(.js) .pstep p { color: var(--ink-2); }
.pipe-view { position: sticky; top: calc(50vh - 190px); }
.pipe-view .win { --wc: var(--field-2); --wt: var(--green-hi); }
.pipe-view .win-bar .px-label { color: var(--yellow); }
.pv-screen { position: relative; height: 300px; background: var(--well); overflow: hidden; }
.pv-card { position: absolute; inset: 22px; display: grid; align-content: start; gap: 14px; opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out); }
.pv-card.on { opacity: 1; transform: none; }
html:not(.js) .pv-card[data-show="5"] { opacity: 1; transform: none; }
.pv-k { font: 400 var(--t-label)/1 var(--f-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.pv-prompt { font: 600 1.125rem/1.4 var(--f-mono); color: var(--green-hi); padding: 14px 16px; background: var(--field); max-width: 34ch; box-shadow: 0 0 0 3px var(--green-deep); }
.pv-prompt .caret { display: inline-block; width: 9px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--green); animation: rec 1s steps(1) infinite; }
.pv-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-dl div { padding: 12px 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--sky); }
.pv-dl dt { font-size: .75rem; color: var(--ink-3); } .pv-dl dd { margin: 4px 0 0; font: 500 .9375rem/1.2 var(--f-mono); color: var(--ink); }
.pv-plan { list-style: none; display: grid; gap: 6px; }
.pv-plan li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--panel); font-size: .9375rem; color: var(--ink); }
.pv-plan .m { font: 400 var(--t-label)/1.6 var(--f-pixel); text-transform: uppercase; padding: 0 6px; color: var(--ink-dark); background: var(--sky); }
.pv-plan li:nth-child(1) .m { background: var(--green); } .pv-plan li:nth-child(3) .m, .pv-plan li:nth-child(4) .m { background: var(--yellow); }
.pv-cuts { display: flex; gap: 3px; height: 44px; margin-top: 18px; }
.pv-cuts i { flex: 3; background: var(--clip-v); box-shadow: inset -2px -2px 0 0 rgb(0 0 0 / .28), inset 2px 2px 0 0 rgb(255 255 255 / .28); }
.pv-cuts i.x { flex: 1; background: repeating-linear-gradient(135deg, var(--pink) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 2px var(--pink); }
.pv-note, .pv-done { color: var(--ink-2); } .pv-note b { color: var(--ink); font-weight: 600; }
.pv-done { font-size: 1.0625rem; color: var(--ink); max-width: 34ch; }
.pv-checks { list-style: none; display: grid; gap: 8px; }
.pv-checks li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.pv-checks li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 3h1v1h1v1h1V4h1V3h1V2h1v1H6v1H5v1H4v1H3V5H2V4H1z' fill='%2304140b'/%3E%3C/svg%3E") center / 12px no-repeat; image-rendering: pixelated; }
.pv-cost { display: flex; align-items: center; gap: 10px; justify-content: space-between; max-width: 260px; padding: 12px 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--yellow); color: var(--ink-3); font-size: .875rem; }
.pv-cost b { display: inline-flex; align-items: center; gap: 6px; font: 600 .9375rem/1 var(--f-mono); color: var(--yellow); }
.pv-cost b::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23c99a12' d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1z'/%3E%3Cpath fill='%23ffd447' d='M2 1h4v1h1v4H6v1H2V6H1V2h1z'/%3E%3Cpath fill='%23fff3c4' d='M2 2h1v3H2z'/%3E%3C/svg%3E") center / 100% no-repeat; image-rendering: pixelated; }
.pv-tl { display: grid; grid-template-columns: 112px 1fr; align-items: center; height: 46px; border-top: 2px solid #000; background: var(--panel-2); }
.pv-tc { font: 500 .8125rem/1 var(--f-mono); color: var(--yellow); padding-left: 12px; font-variant-numeric: tabular-nums; }
.pv-track { position: relative; height: 22px; margin-right: 14px; }
.pv-seg { --c: var(--green); position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1% - 3px); background: var(--panel-3); transition: background-color var(--d-ui) ease; }
.pv-seg:nth-child(2) { --c: var(--sky); } .pv-seg:nth-child(3) { --c: var(--yellow); } .pv-seg:nth-child(4) { --c: var(--violet); } .pv-seg:nth-child(5) { --c: var(--pink); } .pv-seg:nth-child(6) { --c: var(--orange); }
.pv-seg.done, .pv-seg.on { background: var(--c); box-shadow: inset -2px -2px 0 0 rgb(0 0 0 / .28), inset 2px 2px 0 0 rgb(255 255 255 / .28); }
.pv-seg.done { opacity: .55; }
.pv-head { position: absolute; top: -8px; bottom: -8px; left: 0; width: 3px; background: var(--yellow); transform: translateX(calc(var(--p, 0) * 1px)); }

/* ---------- 4. skills on the green band ---------- */
#skills.band { margin-top: var(--section); padding-block: clamp(72px, 9vw, 128px); }
#skills .lead { color: #cfe3d8; }

/* ---------- 5. DIY comparison ---------- */
.diy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.diy .s-head { margin: 0; }
.cmp-t { width: 100%; font-size: .9375rem; }
.cmp-t th, .cmp-t td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--edge); }
.cmp-t thead th { font: 400 var(--t-label)/1 var(--f-pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: var(--panel); padding-block: 11px; }
.cmp-t thead th:last-child { color: var(--green); }
.cmp-t tbody tr:last-child > * { border-bottom: 0; }
.cmp-t tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; width: 1%; }
.cmp-t td { color: var(--ink-3); }
.cmp-t td:last-child { color: var(--ink); background: rgb(0 255 133 / .06); }
.cmp-t .kf { position: relative; display: inline-block; left: auto; top: auto; margin: 0 10px 1px 2px; vertical-align: 1px; background: var(--yellow); }
.sw-dot { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; border: 2px solid var(--green); position: relative; }
.sw-dot::before { content: ""; position: absolute; left: 3px; top: 1px; width: 2px; height: 4px; background: var(--green); }

/* ---------- 6. security ---------- */
.sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.layers-win { position: sticky; top: calc(var(--nav-h) + 32px); }
.layers-win .layer { --lab: var(--ink-3); grid-template-columns: 22px minmax(0, 1fr) auto; height: 54px; padding: 0 14px 0 18px; gap: 10px; box-shadow: inset 6px 0 0 0 var(--lab); }
.layers-win .layer.sel { background: var(--field-2); box-shadow: inset 6px 0 0 0 var(--lab); }
.layers-win .layer .n { font-size: .9375rem; }
.layers-win .layer:last-child { border-bottom: 0; }
.st { font: 400 var(--t-label)/1 var(--f-pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--lab, var(--ink-3)); -webkit-font-smoothing: none; }
.st.on { color: var(--green); }
.lk { width: 14px; height: 14px; position: relative; justify-self: center; }
.lk::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 8px; background: var(--lab, var(--ink-3)); }
.lk::after { content: ""; position: absolute; left: 4px; right: 4px; top: 0; height: 8px; border: 2px solid var(--lab, var(--ink-3)); border-bottom: 0; }
.lk.on::after { right: 0; left: 8px; }
.facts { list-style: none; display: grid; gap: 24px; margin-bottom: 28px; }
.facts h3 { font-size: 1.125rem; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: center; }
.facts h3::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--green); }
.facts li:nth-child(2) h3::before { background: var(--yellow); } .facts li:nth-child(3) h3::before { background: var(--sky); } .facts li:nth-child(4) h3::before { background: var(--pink); }
.facts p { margin-top: 6px; color: var(--ink-2); max-width: 52ch; }

/* ---------- 7. changelog on the green band ---------- */
#changelog.band { margin-top: var(--section); padding-block: clamp(72px, 9vw, 128px); }
#changelog .lead { color: #cfe3d8; }
.log { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.now { padding: 24px; }
.now h3 { font-size: 1.0625rem; margin-bottom: 16px; }
.now ul { list-style: none; display: grid; gap: 18px; }
.now li { display: grid; gap: 8px; color: var(--ink); }
.now .st { color: var(--ink-3); }
.now .st.rec { color: var(--yellow); }
.xp.run i { animation: xp-run 3.2s steps(10) infinite; }
@keyframes xp-run { 0% { transform: scaleX(.18); } 100% { transform: scaleX(.86); } }

/* ---------- 8. download + installer ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dl .s-head { margin: 0; gap: 22px; }
.reqs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.reqs li { font-size: .8125rem; color: var(--ink-2); padding: 7px 10px; background: var(--panel-2); box-shadow: inset 3px 0 0 var(--sky); }
.notify { display: grid; gap: 10px; max-width: 470px; margin-top: 8px; }
.notify label { font-size: .9375rem; color: var(--ink-2); }
.notify .row { display: flex; gap: 8px; align-items: center; }
.notify .input { min-height: 50px; padding: 0 14px; background: var(--well); color: var(--ink); border: 3px solid var(--edge-hi); font-size: 1rem; box-shadow: inset 3px 3px 0 0 rgb(0 0 0 / .45); }
.notify .input:focus-visible { outline: none; border-color: var(--green); }
.setup-steps { list-style: none; padding: 8px 18px; }
.setup-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.setup-steps li:last-child { border-bottom: 0; }
.setup-steps h3 { font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); }
.setup-steps p { margin-top: 2px; font-size: .9375rem; color: var(--ink-2); }
.setup-steps .coin { width: 14px; height: 14px; }
.st-tick { position: relative; width: 20px; height: 20px; margin-top: 1px; background: var(--well); box-shadow: inset 0 0 0 3px var(--green-deep); }
.st-tick::after { content: ""; position: absolute; inset: 0; image-rendering: pixelated;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 3h1v1h1v1h1V4h1V3h1V2h1v1H6v1H5v1H4v1H3V5H2V4H1z' fill='%2304140b'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset -2px -2px 0 0 var(--green-lo); transition: opacity 120ms steps(2), transform 220ms var(--ease-out); transition-delay: calc(360ms + var(--i, 0) * 250ms); }
.js .setup:not(.in) .st-tick::after { opacity: 0; transform: scale(.5); }
.setup-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 2px solid #000; background: var(--panel-2); }
.setup-bar .xp { flex: 1; }
.setup-bar .xp i { transform: scaleX(1); }
.js .setup:not(.in) .setup-bar .xp i { transform: scaleX(0); }
.js .setup .setup-bar .xp i { transition: transform 1.4s steps(14) 300ms; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .rig-grid { grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "mon gp" "tl tl"; }
  .proj-win { display: none; }
  .pain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pain .mini { grid-column: 1 / -1; min-height: 110px; }
}
@media (max-width: 1000px) {
  .hero-top, .pipe, .diy, .sec, .dl, .log { grid-template-columns: 1fr; }
  .vox-stage { min-height: 260px; order: -1; } .vox-stage .vox { --vs: 200px; }
  .pipe-view { top: calc(var(--nav-h) + 8px); z-index: 2; order: -1; }
  .pstep { min-height: 0; padding-block: 18px; }
  .layers-win { position: static; }
  .hero > .field { bottom: 180px; }
}
@media (max-width: 760px) {
  .rig-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mon" "tl" "gp"; gap: 10px; padding: 8px; }
  .gp-win .gp-chat { min-height: 150px; }
  .ws-bar .ws-tab:nth-child(n+4) { display: none; }
  .pain { grid-template-columns: 1fr; padding: 22px 20px 22px 26px; }
}
@media (max-width: 680px) {
  .vox-stage { min-height: 200px; } .vox-stage .vox { --vs: 150px; }
  .vox-stage .hud.h-tl { top: 0; } .vox-stage .hud.h-br { bottom: 0; }
  .chips-row .demo-lbl { display: none; }
  .chips-row .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding: 4px 12px 4px 4px; }
  .chips-row .chips::-webkit-scrollbar { display: none; } .chips .chip { flex: none; } .chips .lbl { flex: none; white-space: nowrap; }
  .tl-row .tl { --head: 76px; --row: 24px; } .tl-row .tl-corner .tc { font-size: .5625rem; letter-spacing: -0.02em; } .tl-row .tl-head .sw { display: none; }
  .tl-row { grid-template-columns: minmax(0, 1fr) 22px; } .vu { padding: 4px 3px; gap: 2px; } .vu i { width: 6px; }
  .pv-screen { height: 214px; } .pv-card { inset: 14px; gap: 10px; } .pv-prompt { font-size: .9375rem; }
  .pv-dl { gap: 6px; } .pv-dl div { padding: 8px 10px; } .pv-dl dd { font-size: .8125rem; }
  .pv-plan { gap: 4px; } .pv-plan li { padding: 6px 10px; font-size: .875rem; }
  .pv-tl { grid-template-columns: 96px 1fr; }
  .cmp-t thead { display: none; }
  .cmp-t tr { display: grid; grid-template-columns: 1fr; padding: 12px 14px; border-bottom: 1px solid var(--edge); }
  .cmp-t tbody tr:last-child { border-bottom: 0; }
  .cmp-t th, .cmp-t td { padding: 3px 0; border: 0; width: auto; }
  .cmp-t td:last-child { background: none; }
  .cmp-t td:first-of-type::before { content: "DIY: "; color: var(--ink-3); }
  .notify .row { flex-direction: column; align-items: stretch; }
  .mq-row li { font-size: .875rem; padding: 12px 14px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-card, .pstep, .pstep h3, .pstep p { transition: none; }
  .pv-prompt .caret, .pain .say .ty.typing::after, .xp.run i { animation: none; }
  .mini *, .mini *::before, .mini *::after { animation: none !important; }
  .mini-caps .m-lane.t .m-clip, .m-keys i { opacity: 1; }
  .m-mon .lt-name, .m-mon .lt-role { clip-path: none; }
  .js .setup:not(.in) .setup-bar .xp i { transform: none; }
  .js .setup:not(.in) .st-tick::after { opacity: 1; transform: none; }
  .rig { transform: none !important; }
}

/* ---------- round 3b: pushing it further ---------- */
/* sprites only where there is room */
@media (max-width: 1000px) { .hero > .field .m-hide { display: none; } }
/* up to 1180px the hero copy sits close to the speaker and scissors, and the pointer drift (up to 22px) pushes them onto it */
@media (max-width: 1180px) { .hero > .field .mid-hide { display: none; } }
/* pipeline: the active step lights up in its colour */
.pstep.on { background: color-mix(in srgb, var(--c) 9%, transparent); }
/* security: the layer stack explodes into 3D (like 3D layers in a comp), then settles back (home.js) */
.layers-win { overflow: visible; perspective: 1400px; }
.layers-win .layers { transform-style: preserve-3d; transform-origin: 50% 60%; transition: transform 900ms var(--ease-in-out); }
.layers-win .layer { position: relative; background: var(--panel); transition: transform 900ms var(--ease-in-out), box-shadow 900ms var(--ease-in-out); }
.layers-win.exploded .layers { transform: rotateX(52deg) rotateZ(-28deg) scale(.86); }
.layers-win.exploded .layer { transform: translateZ(calc(var(--n, 0) * 30px)); box-shadow: inset 6px 0 0 0 var(--lab), 0 0 0 2px var(--lab), 10px 10px 0 0 rgb(0 0 0 / .5); }
@media (prefers-reduced-motion: reduce) { .layers-win .layers, .layers-win .layer { transition: none; } .layers-win.exploded .layers, .layers-win.exploded .layer { transform: none; } }
/* the setup section on the yellow band */
#download.band { margin-top: var(--section); padding-block: clamp(72px, 9vw, 128px); }
#download .reqs li { background: rgb(0 0 0 / .1); color: var(--ink-dark); box-shadow: inset 3px 0 0 var(--ink-dark); }
#download .notify .input { color: var(--ink); }
#download h2 { color: var(--ink-dark); }

.dl-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted, inherit); max-width: 52ch; }
