/* ===========================================================================
   HEADER DROP-DOWNS (desktop) — templates/partials/mega.php, behaviour in site.js.
   Left: the products, one row per grid square. A single highlight plate glides to the row
   under the pointer. Right: a drawing sheet (same language as the homepage G drawing) that
   shows a working miniature of that product, with a sentence and a button below it.
   =========================================================================== */
.mx {
  --ok: #138a4b; --line2: color-mix(in srgb, var(--ink) 28%, transparent); --term: #0a2341; --term-ink: #d6e0e9;
  padding: 0; overflow: hidden; border-top: 1px solid var(--rule);
}
html[data-theme="dark"] .mx { --ok: #5fd08a; --term: #051426; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .mx { --ok: #5fd08a; --term: #051426; } }

.mega.mx { display: flex; flex-direction: column; }
.mega.mx[hidden] { display: none; }
.mx-grid { flex: 1; }
.mx:not([hidden]) { animation: mx-open .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes mx-open { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 -40px 0); } }

.mx-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); }
.mx.is-solutions .mx-grid, .mx.is-analytics .mx-grid, .mx.is-media .mx-grid { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
.mx.is-solutions .mx-sheet, .mx.is-analytics .mx-sheet, .mx.is-media .mx-sheet { height: 252px; }
.mx.is-solutions .mx-list, .mx.is-analytics .mx-list, .mx.is-media .mx-list { padding-top: 40px; }
.mx.is-solutions a.mx-item, .mx.is-analytics a.mx-item, .mx.is-media a.mx-item { min-height: 72px; }

/* ---- The list ---- */
.mx-list { position: relative; display: grid; align-content: start; gap: 0 20px; padding: 32px 32px 36px; }
.mx-list.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-gh { margin: 0 0 8px 14px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.mx-group:only-child { padding-top: 6px; }
.mx ul { list-style: none; margin: 0; padding: 0; }

.mx a.mx-item {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  height: auto; min-height: 60px; padding: 9px 14px; font-size: inherit; font-weight: inherit; letter-spacing: 0; color: var(--ink);
}
.mx a.mx-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mx-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.mx-item[aria-current="true"] .mx-ico { color: #fff; border-color: var(--accent); background: var(--accent); }
html[data-theme="dark"] .mx-item[aria-current="true"] .mx-ico { color: #0a2341; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .mx-item[aria-current="true"] .mx-ico { color: #0a2341; } }
.mx-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mx-t b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; color: var(--ink); }
.mx .mx-t small { display: block; overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.mx-t small .mx-soon { margin-right: 7px; }
.mx-soon { flex: none; padding: 1px 5px; border: 1px solid var(--rule); font-family: "JetBrains Mono", monospace; font-size: 10px; font-style: normal; font-weight: 500; letter-spacing: .02em; color: var(--muted); }

/* The plate that follows the pointer (position set by site.js). */
.mx-plate { position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; opacity: 0; background: var(--hover-tint); box-shadow: inset 2px 0 0 var(--accent); pointer-events: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1), height .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.mx-list.has-plate .mx-plate { opacity: 1; }
.mx-list.no-anim .mx-plate { transition: none; }

/* One orchestrated entrance when a menu opens. */
.mx:not([hidden]) .mx-item { animation: mx-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.mx:not([hidden]) li:nth-child(2) .mx-item { animation-delay: .03s; }
.mx:not([hidden]) li:nth-child(3) .mx-item { animation-delay: .06s; }
.mx:not([hidden]) li:nth-child(4) .mx-item { animation-delay: .09s; }
.mx:not([hidden]) li:nth-child(5) .mx-item { animation-delay: .12s; }
@keyframes mx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- The stage ---- */
.mx-stage { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 32px 36px 36px; border-left: 1px solid var(--rule); background: var(--tile); }
.mx-sheet {
  position: relative; height: 216px; overflow: hidden; border: 1px solid var(--rule); background-color: var(--panel);
  background-image: linear-gradient(var(--panel-line) 1px, transparent 1px), linear-gradient(90deg, var(--panel-line) 1px, transparent 1px);
  background-size: 18px 18px; background-position: -1px -1px;
}
.mx-sheet::before, .mx-sheet::after { content: ""; position: absolute; z-index: 2; width: 12px; height: 12px; border-color: var(--accent); border-style: solid; }
.mx-sheet::before { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.mx-sheet::after { right: 6px; bottom: 6px; border-width: 0 1.5px 1.5px 0; }
.mx-dim { position: absolute; top: 10px; left: 28px; right: 28px; z-index: 2; display: flex; align-items: center; gap: 8px; color: var(--accent); }
.mx-dim i { position: relative; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.mx-dim i::before { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: currentColor; }
.mx-dim i:first-child::before { left: 0; }
.mx-dim i:last-child::before { right: 0; }
.mx-dim em { font-family: "JetBrains Mono", monospace; font-size: 10px; font-style: normal; opacity: .8; }

.mx-fig { position: absolute; inset: 30px 22px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.mx-fig.is-on { opacity: 1; transform: none; }

.mx-cap[hidden] { display: none; }
.mx-cap.is-on { animation: mx-cap .3s ease both; }
@keyframes mx-cap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mx-name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.mx-long { max-width: 46ch; min-height: 3em; margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.mx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.mx a.mx-go { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; background: var(--ink); color: var(--panel); font-size: 14px; font-weight: 600; letter-spacing: 0; transition: background-color .15s ease; }
.mx a.mx-go:hover { background: var(--accent); color: #fff; }
.mx a.mx-go svg { transition: transform .2s ease; }
.mx a.mx-go:hover svg { transform: translateX(3px); }
.mx a.mx-go:focus-visible, .mx a.mx-sub:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mx-subs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.mx a.mx-sub { display: inline; height: auto; font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .15s ease; }
.mx a.mx-sub:hover { text-decoration-color: currentColor; }

/* ===== Miniatures (only the visible one animates; each restarts when it is shown) ===== */
.mx-fig { font-size: 13px; color: var(--ink); }
.fx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line2); background: var(--panel); font-family: "JetBrains Mono", monospace; font-size: 11.5px; }
.fx-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.is-on .fx-pill i { animation: fx-pulse 1.6s ease-out infinite; }
@keyframes fx-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes fx-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fx-blink { 50% { opacity: 0; } }
@keyframes fx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Marketplace: name tags */
.fx-tags { display: grid; gap: 10px; justify-items: start; width: 100%; max-width: 270px; }
.fx-tag { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 28px; border: 1px solid var(--line2); background: var(--panel); font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.fx-tag i { position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: 1.5px solid var(--line2); border-radius: 50%; }
.fx-tag:nth-child(2) { margin-left: 34px; }
.fx-tag:nth-child(3) { margin-left: 12px; border-color: var(--accent); }
.fx-tag b { padding: 3px 8px; background: var(--accent); color: #fff; font-family: "Inter Tight", sans-serif; font-size: 11px; font-weight: 600; }
.is-on .fx-tag { animation: fx-fade .45s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .fx-tag:nth-child(2) { animation-delay: .12s; }
.is-on .fx-tag:nth-child(3) { animation-delay: .24s; }
.is-on .fx-tag b { animation: fx-pop .35s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
@keyframes fx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Domains: a search that finds the name */
.fx-search { display: flex; width: 100%; max-width: 280px; height: 38px; border: 1px solid var(--line2); background: var(--panel); }
.fx-q { flex: 1; display: flex; align-items: center; padding: 0 12px; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.fx-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 8ch; }
.is-on .fx-type { animation: fx-type .7s steps(8) .15s both; }
@keyframes fx-type { from { width: 0; } to { width: 8ch; } }
.fx-caret { width: 2px; height: 16px; margin-left: 1px; background: var(--accent); }
.is-on .fx-caret { animation: fx-blink 1s steps(1) infinite; }
.fx-btn { display: flex; align-items: center; padding: 0 14px; background: var(--ink); color: var(--panel); font-size: 12.5px; font-weight: 600; }
.fx-tlds { width: 100%; max-width: 280px; }
.fx-tlds li { display: flex; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--panel-line); font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); }
.fx-tlds b { font-weight: 500; color: var(--ink); }
.fx-tlds em { margin-left: auto; font-family: "Inter Tight", sans-serif; font-size: 12px; font-style: normal; font-weight: 600; color: var(--ok); }
.is-on .fx-tlds li { animation: fx-fade .35s ease both; }
.is-on .fx-tlds li:nth-child(1) { animation-delay: .95s; }
.is-on .fx-tlds li:nth-child(2) { animation-delay: 1.1s; }
.is-on .fx-tlds li:nth-child(3) { animation-delay: 1.25s; }

/* Hosting: a site being built, then online */
.fx-browser { width: 100%; max-width: 270px; border: 1px solid var(--line2); background: var(--panel); }
.fx-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-bottom: 1px solid var(--line2); }
.fx-bar i { width: 6px; height: 6px; border: 1px solid var(--line2); border-radius: 50%; }
.fx-bar span { margin-left: 8px; font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted); }
.fx-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.fx-page span { height: 26px; background: var(--tile); border: 1px solid var(--panel-line); transform-origin: left; }
.fx-page .fx-hd { grid-column: 1 / -1; height: 7px; background: var(--line2); border: 0; }
.fx-page .fx-hero { grid-column: 1 / -1; height: 36px; background: color-mix(in srgb, var(--accent) 22%, var(--panel)); border: 0; }
.is-on .fx-page span { animation: fx-grow .4s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .fx-page span:nth-child(2) { animation-delay: .12s; }
.is-on .fx-page span:nth-child(3) { animation-delay: .24s; }
.is-on .fx-page span:nth-child(4) { animation-delay: .3s; }
.is-on .fx-page span:nth-child(5) { animation-delay: .36s; }
.is-on .fig-hosting .fx-pill { animation: fx-fade .35s ease .7s both; }

/* SSL: the padlock closes and the shield is drawn */
.fx-addr { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 270px; height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 17px; background: var(--panel); font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); }
.fx-lock { position: relative; flex: none; width: 12px; height: 9px; margin-top: 5px; border-radius: 2px; background: var(--ok); }
.fx-lock i { position: absolute; left: 2px; top: -7px; width: 8px; height: 8px; border: 2px solid var(--ok); border-bottom: 0; border-radius: 5px 5px 0 0; }
.is-on .fx-lock i { animation: fx-shut .35s cubic-bezier(.3, 1.4, .5, 1) .55s both; }
@keyframes fx-shut { from { transform: translateY(-4px); } to { transform: none; } }
.fx-https { color: var(--ok); font-weight: 500; }
.is-on .fx-https { animation: fx-fade .3s ease .7s both; }
.fx-shield { width: 84px; height: 84px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fx-shield path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.fx-shield .fx-tick { stroke: var(--ok); stroke-width: 5; }
.is-on .fx-shield path { animation: fx-draw .8s ease both; }
.is-on .fx-shield .fx-tick { animation-delay: .75s; animation-duration: .4s; }

/* VPS and game servers: a console */
.fx-term { width: 100%; max-width: 300px; padding: 12px 14px; background: var(--term); border: 1px solid var(--rule); color: var(--term-ink); font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.7; }
.fx-term p { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fx-term span { color: #70afe9; }
.fx-term .fx-dim { color: #8aa0b6; }
.fx-term.is-game span { color: #7fd8a0; }
.is-on .fx-term p { animation: fx-fade .25s ease both; }
.is-on .fx-term p:nth-child(2) { animation-delay: .3s; }
.is-on .fx-term p:nth-child(3) { animation-delay: .6s; }
.is-on .fx-term p:nth-child(4) { animation-delay: .9s; }
.is-on .fx-term p:nth-child(5) { animation-delay: 1.2s; }
.fx-cur { display: inline-block; width: 7px; height: 13px; margin-left: 6px; vertical-align: -2px; background: var(--term-ink); }
.is-on .fx-cur { animation: fx-blink 1s steps(1) infinite; }
.is-on .fig-game .fx-pill { animation: fx-fade .3s ease 1.4s both; }

/* Dedicated: a rack with its lights working */
.fx-rack { display: grid; gap: 4px; width: 210px; padding: 6px; border: 1.5px solid var(--line2); background: var(--panel); }
.fx-u { display: flex; align-items: center; gap: 5px; height: 17px; padding: 0 8px; border: 1px solid var(--line2); }
.fx-u i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.fx-u b { margin-left: auto; width: 70px; height: 5px; background: repeating-linear-gradient(90deg, var(--line2) 0 6px, transparent 6px 9px); }
.is-on .fx-u i:nth-child(1) { background: var(--ok); animation: fx-blink .9s steps(1) infinite; }
.is-on .fx-u i:nth-child(2) { animation: fx-led 1.3s steps(1) infinite; }
.is-on .fx-u:nth-child(2n) i:nth-child(1) { animation-duration: 1.4s; }
.is-on .fx-u:nth-child(3n) i:nth-child(2) { animation-duration: .7s; }
.is-on .fx-u:nth-child(3n + 1) i:nth-child(1) { animation-delay: .3s; }
@keyframes fx-led { 0% { background: var(--line2); } 50% { background: var(--accent); } }

/* VoIP: a call */
.fx-call { display: grid; justify-items: center; gap: 10px; }
.fx-ring { position: relative; width: 40px; height: 40px; border: 2px solid var(--accent); border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.fx-ring::before, .fx-ring::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; }
.is-on .fx-ring::before { animation: fx-ring 1.8s ease-out infinite; }
.is-on .fx-ring::after { animation: fx-ring 1.8s ease-out .6s infinite; }
@keyframes fx-ring { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
.fx-ext { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.fx-wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.fx-wave i { width: 4px; height: 100%; background: var(--accent); transform: scaleY(.18); }
.is-on .fx-wave i { animation: fx-wave .9s ease-in-out infinite alternate; }
.is-on .fx-wave i:nth-child(3n) { animation-duration: .6s; }
.is-on .fx-wave i:nth-child(4n + 1) { animation-duration: 1.1s; animation-delay: -.3s; }
.is-on .fx-wave i:nth-child(5n + 2) { animation-delay: -.5s; }
@keyframes fx-wave { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.fx-time { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ok); }

/* Validator: blocks joining the chain */
.fx-chain { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.fx-track { display: flex; gap: 22px; width: max-content; }
.is-on .fx-track { animation: fx-slide 1.6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes fx-slide { from { transform: translateX(0); } to { transform: translateX(-74px); } }
.fx-blk { position: relative; display: grid; align-content: center; gap: 5px; width: 52px; height: 52px; padding: 0 9px; border: 1.5px solid var(--line2); background: var(--panel); }
.fx-blk i { height: 3px; background: var(--line2); }
.fx-blk i:nth-child(2) { width: 70%; }
.fx-blk::after { content: ""; position: absolute; top: 50%; right: -24px; width: 22px; height: 1.5px; background: var(--line2); }
.fx-blk:nth-child(4) { border-color: var(--accent); }
.fx-blk:nth-child(4) i { background: var(--accent); }

/* A small app window used by the Analytics miniatures */
.fx-box { width: 100%; max-width: 320px; padding: 10px 14px 6px; border: 1px solid var(--line2); background: var(--panel); }
.fx-boxh { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line2); font-weight: 600; }
.fx-boxh span { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 400; color: var(--muted); }
.fx-box .fx-list, .fx-box .fx-ledger, .fx-box .fx-beats { max-width: none; }
.fx-box .fx-list li:last-child, .fx-box .fx-beats p:last-child { border-bottom: 0; }
.fx-box .fx-ledger { height: 136px; }

/* Game tracker: servers and their status */
.fx-list { width: 100%; max-width: 290px; }
.fx-list li { display: grid; grid-template-columns: 8px auto 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--panel-line); }
.fx-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.fx-list b { font-weight: 600; }
.fx-list span { height: 4px; background: var(--panel-line); }
.fx-list span::after { content: ""; display: block; width: 70%; height: 100%; background: color-mix(in srgb, var(--accent) 45%, transparent); transform-origin: left; }
.fx-list li:nth-child(2) span::after { width: 40%; }
.fx-list li:nth-child(3) span::after { width: 85%; }
.fx-list li.is-off span::after { width: 0; }
.fx-list em { font-family: "JetBrains Mono", monospace; font-size: 11px; font-style: normal; color: var(--ok); }
.fx-list .is-off i { background: var(--muted); }
.fx-list .is-off em { color: var(--muted); }
.is-on .fx-list li { animation: fx-fade .3s ease both; }
.is-on .fx-list li:nth-child(2) { animation-delay: .1s; }
.is-on .fx-list li:nth-child(3) { animation-delay: .2s; }
.is-on .fx-list li:nth-child(4) { animation-delay: .3s; }
.is-on .fx-list li:not(.is-off) i { animation: fx-pulse 1.8s ease-out .4s infinite; }
.is-on .fx-list span::after { animation: fx-grow .6s cubic-bezier(.2, .8, .2, 1) .35s both; }

/* Explorer: new blocks arriving */
.fx-ledger { width: 100%; max-width: 290px; height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.fx-rows p { display: flex; justify-content: space-between; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--panel-line); }
.fx-rows b { font-weight: 600; }
.fx-rows code { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); }
.is-on .fx-rows { animation: fx-up 6s linear infinite; }
@keyframes fx-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Validator status: a heartbeat per node */
.fx-beats { width: 100%; max-width: 300px; }
.fx-beats p { display: grid; grid-template-columns: 70px 1fr; align-items: center; margin: 0; padding: 4px 0; border-bottom: 1px solid var(--panel-line); }
.fx-beats .fx-chainname { display: block; padding: 0 0 6px; border: 0; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted); }
.fx-beats b { font-weight: 600; }
.fx-beats svg { width: 100%; height: 26px; fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linejoin: round; }
.fx-beats path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-on .fx-beats path { animation: fx-beat 2.2s linear infinite; }
.is-on .fx-beats p:nth-child(3) path { animation-delay: .5s; }
.is-on .fx-beats p:nth-child(4) path { animation-delay: 1s; }
@keyframes fx-beat { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }

/* Brands: the family around Gridtek */
.fx-orbit { position: relative; width: 300px; max-width: 100%; height: 168px; }
.fx-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line2); stroke-width: 1.2; stroke-dasharray: 1; }
.is-on .fx-orbit svg path { animation: fx-draw .7s ease both; }
.fx-core, .fx-sat { position: absolute; z-index: 1; padding: 6px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fx-core { top: 50%; left: 50%; background: var(--ink); color: var(--panel); transform: translate(-50%, -50%); }
.fx-sat { border: 1px solid var(--line2); background: var(--panel); }
.fx-sat.s1 { top: 10px; left: 0; }
.fx-sat.s2 { top: 10px; right: 0; }
.fx-sat.s3 { bottom: 10px; left: 0; }
.fx-sat.s4 { bottom: 10px; right: 0; border-color: var(--accent); }
.is-on .fx-sat { animation: fx-pop .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.is-on .fx-sat.s1 { animation-delay: .35s; }
.is-on .fx-sat.s2 { animation-delay: .45s; }
.is-on .fx-sat.s3 { animation-delay: .55s; }
.is-on .fx-sat.s4 { animation-delay: .65s; }

/* Products: layers lifting apart */
.fx-stack { position: relative; width: 200px; height: 160px; }
.fx-stack span { position: absolute; left: 40px; top: 30px; width: 120px; height: 120px; border: 1.5px solid var(--line2); background: color-mix(in srgb, var(--panel) 85%, transparent); transform: rotateX(60deg) rotateZ(45deg); }
.fx-stack .l1 { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.is-on .fx-stack .l1 { animation: fx-l1 .7s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .fx-stack .l3 { animation: fx-l3 .7s cubic-bezier(.2, .8, .2, 1) both; }
.fx-stack .l1 { transform: translateY(-34px) rotateX(60deg) rotateZ(45deg); z-index: 3; }
.fx-stack .l2 { z-index: 2; }
.fx-stack .l3 { transform: translateY(34px) rotateX(60deg) rotateZ(45deg); z-index: 1; }
@keyframes fx-l1 { from { transform: rotateX(60deg) rotateZ(45deg); } to { transform: translateY(-34px) rotateX(60deg) rotateZ(45deg); } }
@keyframes fx-l3 { from { transform: rotateX(60deg) rotateZ(45deg); } to { transform: translateY(34px) rotateX(60deg) rotateZ(45deg); } }

/* Services: work flowing through */
.fx-flow { width: 300px; max-width: 100%; height: 168px; fill: var(--panel); stroke: var(--line2); stroke-width: 1.5; }
.fx-flow path { fill: none; stroke: var(--accent); stroke-dasharray: 5 7; }
.fx-flow rect { stroke: var(--accent); }
.is-on .fx-flow path { animation: fx-flow .9s linear infinite; }
@keyframes fx-flow { to { stroke-dashoffset: -24; } }

/* Technology: signals running to the chip */
.fx-chip { width: 300px; max-width: 100%; height: 168px; fill: none; stroke: var(--line2); stroke-width: 1.5; }
.fx-chip rect:first-child { stroke: var(--ink); fill: var(--panel); }
.fx-chip rect:nth-child(2) { stroke: var(--accent); }
.fx-chip .fx-spark { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .18 1; stroke-dashoffset: 1.18; }
.is-on .fx-chip .fx-spark { animation: fx-spark 1.4s linear infinite; }
.is-on .fx-chip .d2 { animation-delay: .35s; }
.is-on .fx-chip .d3 { animation-delay: .7s; }
.is-on .fx-chip .d4 { animation-delay: 1.05s; }
@keyframes fx-spark { from { stroke-dashoffset: 1.18; } to { stroke-dashoffset: 0; } }

/* News: the latest posts (or a page being set) */
.fx-news { width: 100%; max-width: 300px; }
.fx-news li { padding: 8px 0; border-bottom: 1px solid var(--panel-line); }
.fx-news time { display: block; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--muted); }
.fx-news b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.is-on .fx-news li { animation: fx-fade .3s ease both; }
.is-on .fx-news li:nth-child(2) { animation-delay: .1s; }
.is-on .fx-news li:nth-child(3) { animation-delay: .2s; }
.fx-paper, .fx-quote { display: grid; gap: 9px; width: 230px; }
.fx-paper span, .fx-quote span { height: 6px; background: var(--line2); transform-origin: left; }
.fx-paper .fx-ttl { height: 14px; width: 80%; background: var(--ink); }
.fx-paper .short, .fx-quote .short { width: 55%; }
.is-on .fx-paper span, .is-on .fx-quote span:not(.fx-mark) { animation: fx-grow .45s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .fx-paper span:nth-child(2), .is-on .fx-quote span:nth-child(3) { animation-delay: .1s; }
.is-on .fx-paper span:nth-child(3), .is-on .fx-quote span:nth-child(4) { animation-delay: .2s; }
.is-on .fx-paper span:nth-child(4) { animation-delay: .3s; }
.is-on .fx-paper span:nth-child(5) { animation-delay: .4s; }
.fx-quote .fx-mark { height: auto; background: none; font-size: 64px; font-weight: 600; line-height: .6; color: var(--accent); }

/* Videos: a player */
.fx-player { position: relative; width: 240px; aspect-ratio: 16 / 9; background: var(--term); border: 1px solid var(--rule); }
.fx-play { position: absolute; top: 50%; left: 50%; width: 0; height: 0; margin: -14px 0 0 -9px; border-left: 24px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.fx-prog { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; background: rgba(255, 255, 255, .22); }
.fx-prog i { display: block; width: 100%; height: 100%; background: #70afe9; transform-origin: left; transform: scaleX(.3); }
.is-on .fx-prog i { animation: fx-grow 5s linear infinite; }

/* ---- Narrow desktops ---- */
@media (min-width: 1021px) and (max-width: 1180px) {
  .mx-list { padding: 24px 20px 28px; gap: 0 8px; }
  .mx-stage { padding: 24px 24px 28px; }
  .mx-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
  .mx a.mx-item { gap: 12px; padding: 8px 10px; }
  .mx-ico { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .mx, .mx *, .mx *::before, .mx *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Products: labels for the layers */
.fx-stack em { position: absolute; left: 186px; font-family: "JetBrains Mono", monospace; font-size: 11px; font-style: normal; color: var(--muted); white-space: nowrap; }
.fx-stack em::before { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 8px 3px 0; vertical-align: middle; background: var(--line2); }
.fx-stack .t1 { top: 48px; color: var(--accent); }
.fx-stack .t2 { top: 82px; }
.fx-stack .t3 { top: 116px; }
.fx-stack { margin-right: 110px; }
.is-on .fx-stack em { animation: fx-fade .35s ease .55s both; }
.is-on .fx-stack .t2 { animation-delay: .65s; }
.is-on .fx-stack .t3 { animation-delay: .75s; }

/* Services: plan, build, run */
.fx-steps { display: flex; align-items: center; gap: 30px; counter-reset: none; }
.fx-steps li { position: relative; display: grid; gap: 3px; width: 92px; padding: 12px 10px; border: 1px solid var(--line2); background: var(--panel); text-align: center; }
.fx-steps li:nth-child(2) { border-color: var(--accent); }
.fx-steps b { font-size: 14px; font-weight: 600; }
.fx-steps span { font-size: 11px; line-height: 1.3; color: var(--muted); }
.fx-steps li + li::before { content: ""; position: absolute; top: 50%; left: -31px; width: 30px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); background-size: 16px 100%; }
.is-on .fx-steps li + li::before { animation: fx-dash .6s linear infinite; }
@keyframes fx-dash { to { background-position: 16px 0; } }
.is-on .fx-steps li { animation: fx-fade .35s ease both; }
.is-on .fx-steps li:nth-child(2) { animation-delay: .15s; }
.is-on .fx-steps li:nth-child(3) { animation-delay: .3s; }

/* In the News: clippings */
.fx-clips { position: relative; width: 250px; height: 150px; }
.fx-clips > span { position: absolute; display: grid; gap: 7px; width: 150px; padding: 12px; border: 1px solid var(--line2); background: var(--panel); box-shadow: 0 6px 14px rgba(10, 35, 65, .08); }
.fx-clips b { height: 10px; width: 80%; background: var(--ink); }
.fx-clips i { height: 5px; background: var(--line2); }
.fx-clips .short { width: 60%; }
.fx-clips em { font-size: 40px; font-style: normal; font-weight: 600; line-height: .5; height: 18px; color: var(--accent); }
.fx-clips .c1 { left: 0; top: 18px; transform: rotate(-4deg); }
.fx-clips .c2 { left: 80px; top: 0; transform: rotate(3deg); }
.fx-clips .c3 { left: 50px; top: 52px; transform: rotate(-1deg); border-color: var(--accent); }
.is-on .fx-clips > span { animation: fx-drop .45s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .fx-clips .c2 { animation-delay: .12s; }
.is-on .fx-clips .c3 { animation-delay: .24s; }
@keyframes fx-drop { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
