/* Soontek harness page
   Loaded after soontek-tuotesivu.css and only by harness/index.html. The shared
   file still gives the ground, the type, the header, the footer, the button and
   the pinned background band; everything here is prefixed hx- and scoped to
   body.hx so the other three product pages do not change.

   Motion rules, in one place:
   - Every base style is the FINAL state. Animations start from hidden and run
     into it, so the page reads the same with no script, with a script that
     failed to load, and with prefers-reduced-motion.
   - Hidden-until-revealed states exist only under html.js, a class that
     skriptit/harness.js sets itself. No script, no class, nothing hidden.
   - Scroll reveals get .is-in from the script. Looping demos start on .is-in
     too, so they do not run before anyone can see them. */

.hx {
  --wide: 72rem;
  --hx-ink-3: #808483;
  --hx-panel: #0a0b0d;
  --hx-panel-2: #101215;
  --hx-line: rgba(255, 255, 255, .13);
  --hx-line-2: rgba(255, 255, 255, .07);
  --hx-glow: rgba(255, 106, 31, .34);
  --hx-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --hx-ease: cubic-bezier(.2, .7, .2, 1);

  /* wire colours, the same ones the tool draws with */
  --w-red: #ff4438;
  --w-gnd: #8e949c;
  --w-wht: #f2f2f2;
  --w-yel: #ffd23c;
  --w-grn: #2fc45a;
  --w-blu: #3f8cff;

  overflow-x: clip;
}

html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.hx section { border-top: 0; position: relative; }
.hx section + section { border-top: 0; }
.hx .wrap > h2::before { content: none; }
.hx ::selection { background: var(--accent); color: #000; }

/* ---- scroll progress: one orange wire across the top ------------------- */

.hx-progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 100%; height: 2px; pointer-events: none;
}
.hx-progress i {
  display: block; height: 100%;
  background: var(--accent); box-shadow: 0 0 12px var(--hx-glow);
  transform: scaleX(var(--hx-scroll, 0)); transform-origin: 0 50%;
}

/* ---- header ------------------------------------------------------------ */

.hx .site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: transparent;
  transition: border-color .3s, background .3s;
}
.hx .site-head.is-stuck { border-bottom-color: var(--hx-line); background: rgba(0, 0, 0, .8); }
.hx .site-head nav { align-items: center; }
.hx .site-head nav a { color: var(--ink-2); position: relative; }
.hx .site-head nav a:hover { color: var(--ink); text-decoration: none; }
.hx .site-head nav a:not(.hx-nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--hx-ease);
}
.hx .site-head nav a:not(.hx-nav-cta):hover::after { transform: scaleX(1); }
.hx .site-head nav .hx-nav-cta {
  color: var(--accent); border: 1px solid var(--accent); padding: .55rem 1rem;
  font-weight: 700; transition: background .25s, color .25s;
}
.hx .site-head nav .hx-nav-cta:hover { background: var(--accent); color: #000; }

/* ---- shared bits -------------------------------------------------------- */

.hx .eyebrow { color: var(--accent); display: inline-flex; align-items: center; gap: .7rem; font-family: var(--hx-mono); letter-spacing: .2em; }
.hx-dot {
  width: .5rem; height: .5rem; background: var(--accent); display: inline-block;
  box-shadow: 0 0 0 0 var(--hx-glow); animation: hx-ping 2.4s ease-out infinite;
}
@keyframes hx-ping {
  0% { box-shadow: 0 0 0 0 var(--hx-glow); }
  70%, 100% { box-shadow: 0 0 0 .7rem rgba(255, 106, 31, 0); }
}

.hx-sechead { max-width: 46rem; margin-bottom: 3.5rem; }
.hx-sechead h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 1.2rem; text-wrap: balance; }
.hx-sechead p:last-child { color: var(--ink-2); font-size: 1.15rem; margin: 0; }
.hx em { font-style: normal; color: var(--accent); }

/* Registration crosses in the corners of a frame: the same mark the tool
   prints on a form board so that two sheets can be laid on top of each other. */
.hx-cross { position: relative; }
.hx-cross::before, .hx-cross::after {
  content: ""; position: absolute; width: 13px; height: 13px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 50% / 13px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 50% 50% / 1px 13px no-repeat;
}
.hx-cross::before { left: -7px; top: -7px; }
.hx-cross::after { right: -7px; bottom: -7px; }

/* Scroll reveal. --d staggers siblings. */
.js .hx [data-reveal] {
  opacity: 0; transform: translateY(1.6rem);
  transition: opacity .9s var(--hx-ease) var(--d, 0s), transform .9s var(--hx-ease) var(--d, 0s);
}
.js .hx [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- hero --------------------------------------------------------------- */

.hx-hero { padding: 4.5rem 0 0; overflow: clip; }
.hx-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hx-hero__bg::before {        /* drawing grid, faded out towards the edges */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--hx-line-2) 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(90deg, var(--hx-line-2) 1px, transparent 1px) 0 0 / 3rem 3rem;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 20%, transparent 78%);
}
.hx-hero__bg::after {         /* slow orange glow behind the drawing */
  content: ""; position: absolute; width: 60rem; height: 60rem; right: -18rem; top: -22rem;
  background: radial-gradient(closest-side, rgba(255, 106, 31, .2), rgba(255, 106, 31, 0));
  animation: hx-breathe 9s ease-in-out infinite alternate;
}
@keyframes hx-breathe {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  to { transform: translate3d(-4rem, 3rem, 0) scale(1.15); opacity: 1; }
}

.hx-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 2rem 3rem; align-items: center;
}
.hx-hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.9rem); line-height: 1.04; margin-bottom: 1.6rem; }
.hx-h1line { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-h1line > span { display: block; animation: hx-rise 1s var(--hx-ease) both; }
.hx-h1line:nth-child(2) > span { animation-delay: .12s; }
.hx-h1line:nth-child(3) > span { animation-delay: .24s; }
@keyframes hx-rise { from { transform: translateY(108%); } to { transform: none; } }

.hx-lead { font-weight: 300; font-size: 1.3rem; line-height: 1.55; color: #e4e5e5; max-width: 35rem; margin-bottom: 2.2rem; }
.hx-fade { animation: hx-fadeup .9s var(--hx-ease) both; animation-delay: var(--d, .3s); }
@keyframes hx-fadeup { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-bottom: 2.4rem; }
.hx .button { margin-top: 0; position: relative; overflow: hidden; transition: color .3s, background .3s, box-shadow .3s; }
.hx .button span { display: inline-block; transition: transform .3s var(--hx-ease); }
.hx .button:hover { box-shadow: 0 0 2.5rem var(--hx-glow); }
.hx .button:hover span { transform: translateX(.35rem); }
.hx-ghost { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.hx-ghost span { display: inline-block; color: var(--accent); animation: hx-nudge 1.8s ease-in-out infinite; }
.hx-ghost:hover { text-decoration: none; color: var(--accent); }
@keyframes hx-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.3rem); } }

.hx-trust {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  font-family: var(--hx-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-ink-3);
}
.hx-trust li::before { content: "+"; color: var(--accent); margin-right: .55rem; }

/* the drawing */
.hx-art { position: relative; }
.hx-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hx-art text { font-family: var(--hx-mono); }

.hx-conn { animation: hx-pop .7s var(--hx-ease) both; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes hx-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.hx-wire {
  fill: none; stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: hx-draw 1.5s cubic-bezier(.6, 0, .25, 1) both; animation-delay: var(--d, 0s);
}
@keyframes hx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hx-after { animation: hx-show .6s ease both; animation-delay: var(--d, 0s); }
@keyframes hx-show { from { opacity: 0; } to { opacity: 1; } }
.hx-pulse { filter: drop-shadow(0 0 4px #fff); }

/* screenshot in a window frame, tilted back until it scrolls into place */
.hx-stage { perspective: 1600px; margin-top: 4.5rem; position: relative; }
.hx-frame { margin: 0; background: var(--hx-panel); border: 1px solid var(--hx-line); position: relative; }
.hx-frame__bar {
  display: flex; align-items: center; gap: .45rem; padding: .6rem .8rem;
  border-bottom: 1px solid var(--hx-line);
  font-family: var(--hx-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hx-ink-3);
}
.hx-frame__bar i { width: .55rem; height: .55rem; border: 1px solid var(--hx-line); display: block; }
.hx-frame__bar i:first-child { background: var(--accent); border-color: var(--accent); }
.hx-frame__bar b { font-weight: 400; margin-left: .6rem; }
.hx-frame img { display: block; width: 100%; height: auto; }
.hx-tilt {
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--hx-tilt, 0) * 16deg)) scale(calc(1 - var(--hx-tilt, 0) * .06));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .25), 0 -3rem 8rem -3rem var(--hx-glow);
  will-change: transform;
}
.hx-stage::after {           /* the frame sinks into the next section */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; pointer-events: none;
  background: linear-gradient(transparent, #000);
}

/* ---- ticker -------------------------------------------------------------- */

.hx-ticker {
  border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line);
  overflow: hidden; padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hx-ticker__row { display: flex; width: max-content; animation: hx-marquee 46s linear infinite; }
.hx-ticker:hover .hx-ticker__row { animation-play-state: paused; }
.hx-ticker ul {
  display: flex; list-style: none; margin: 0; padding: 0; flex: none;
  font-weight: 900; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .06em; white-space: nowrap;
}
.hx-ticker li { padding: 0 1.4rem; color: var(--ink-2); }
.hx-ticker li::after { content: "+"; color: var(--accent); margin-left: 2.8rem; font-weight: 400; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* ---- numbers ------------------------------------------------------------- */

.hx-stats { padding: 5rem 0; }
.hx-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--hx-line); }
.hx-stat { padding: .4rem 1.6rem 0; border-right: 1px solid var(--hx-line); }
.hx-stat b {
  display: block; font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: .9rem;
}
.hx-stat b small { font-size: .45em; color: var(--accent); margin-left: .15em; }
.hx-stat span { display: block; font-size: .92rem; line-height: 1.5; color: var(--ink-2); max-width: 15rem; }

/* ---- the problem: three documents become one ---------------------------- */

.hx-problem__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: center; }
.hx-problem p { color: var(--ink-2); }
.hx-problem p strong { color: var(--ink); }

.hx-merge { font-family: var(--hx-mono); font-size: .8rem; }
.hx-merge__docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.hx-doc { border: 1px solid var(--hx-line); background: var(--hx-panel); padding: .9rem .9rem 1rem; color: var(--hx-ink-3); position: relative; }
.hx-doc b { display: block; font-weight: 400; color: var(--ink-2); margin-bottom: .3rem; text-decoration: line-through; text-decoration-color: var(--w-red); }
.hx-doc span { font-size: .72rem; }
.hx-merge svg { display: block; width: 100%; height: 5rem; overflow: visible; }
.hx-merge path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.hx-doc--one {
  border-color: var(--accent); color: var(--ink-2); text-align: center; padding: 1.3rem 1rem 1.4rem;
  box-shadow: 0 0 4rem -1rem var(--hx-glow), inset 0 0 2rem -1rem var(--hx-glow);
}
.hx-doc--one b { text-decoration: none; color: var(--ink); font-size: 1rem; margin-bottom: .5rem; }

.is-in .hx-merge__docs .hx-doc { animation: hx-scatter 1.1s var(--hx-ease) both; }
.is-in .hx-merge__docs .hx-doc:nth-child(1) { --r: -7deg; --x: -.6rem; --y: .8rem; animation-delay: .1s; }
.is-in .hx-merge__docs .hx-doc:nth-child(2) { --r: 4deg; --x: .2rem; --y: -.9rem; animation-delay: .2s; }
.is-in .hx-merge__docs .hx-doc:nth-child(3) { --r: 9deg; --x: .8rem; --y: .5rem; animation-delay: .3s; }
@keyframes hx-scatter {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); border-color: var(--w-red); }
  45% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); border-color: var(--w-red); }
  100% { opacity: 1; transform: none; }
}
.is-in .hx-merge path { animation: hx-draw .9s var(--hx-ease) 1.2s both; }
.is-in .hx-doc--one { animation: hx-pop .8s var(--hx-ease) 1.9s both; }

/* ---- tour: one tab per view, advancing on its own ------------------------ */

.hx-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; border-bottom: 1px solid var(--hx-line); }
html:not(.js) .hx-tabs { display: none; }
.hx-tabs button {
  appearance: none; background: none; border: 0; color: var(--hx-ink-3); cursor: pointer; text-align: left;
  font: inherit; padding: 1.1rem 1rem 1.2rem 0; position: relative; transition: color .3s;
}
.hx-tabs button:hover, .hx-tabs button[aria-selected="true"] { color: var(--ink); }
.hx-tabs button:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.hx-tabs__n { display: block; font-family: var(--hx-mono); font-size: .72rem; letter-spacing: .16em; color: var(--accent); margin-bottom: .35rem; }
.hx-tabs__t { display: block; font-weight: 900; text-transform: uppercase; font-size: 1.05rem; line-height: 1.2; }
.hx-tabs__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.hx-tabs__bar::after { content: ""; display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.hx-tabs button[aria-selected="true"] .hx-tabs__bar::after { transform: scaleX(1); }
.hx-tour.is-auto .hx-tabs button[aria-selected="true"] .hx-tabs__bar::after { animation: hx-fill 7s linear both; }
.hx-tour.is-auto.is-paused .hx-tabs__bar::after { animation-play-state: paused; }
@keyframes hx-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hx-panels { display: grid; }
.hx-panel { margin: 0 0 3.5rem; min-width: 0; }
.hx-panel:last-child { margin-bottom: 0; }
.hx-panel figcaption { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: .5rem 3rem; padding-top: 1.6rem; }
.hx-panel figcaption h3 { font-size: 1.25rem; margin: 0; }
.hx-panel figcaption p { color: var(--ink-2); margin: 0; max-width: 40rem; }
/* The outgoing view leaves quickly and the incoming one waits for it, so two captions never overlap. */
.js .hx-panel { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(.8rem); transition: opacity .22s ease, transform .22s ease, visibility 0s .22s; }
.js .hx-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .2s, transform .6s var(--hx-ease) .2s, visibility 0s; }

/* ---- feature cards ------------------------------------------------------- */

/* Hairlines are borders on the cards, not a grey ground showing through 1px gaps:
   a card is transparent until it is revealed, and the ground showed as one grey slab. */
.hx-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--hx-line); border-left: 1px solid var(--hx-line); }
.hx-card {
  grid-column: span 2; background: #000; padding: 2rem 1.8rem 2.1rem; position: relative; overflow: hidden; min-width: 0;
  border-right: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line);
}
.hx-card--half { grid-column: span 3; }
.hx-card--full { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 3rem; align-items: center; }
.hx-card::before {           /* light that follows the pointer, set from the script */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 31, .13), transparent 65%);
}
.hx-card:hover::before { opacity: 1; }
.hx-card > * { position: relative; }
.hx-card h3 { font-size: 1.12rem; margin-bottom: .7rem; }
.hx-card p { font-size: .97rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.hx-card__icon { width: 2rem; height: 2rem; margin-bottom: 1.2rem; color: var(--accent); display: block; }
.hx-card__icon * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.hx-demo {
  border: 1px solid var(--hx-line); background: var(--hx-panel); margin-bottom: 1.8rem;
  font-family: var(--hx-mono); font-size: .74rem; color: var(--ink-2); position: relative;
}
.hx-card--full .hx-demo { margin-bottom: 0; order: 2; }
.hx-demo svg { display: block; width: 100%; height: auto; }
.hx-demo text { font-family: var(--hx-mono); }

/* demo 1: a signal name follows the net */
.hx-net__wire { fill: none; stroke: #3a3e44; stroke-width: 2.4; }
.hx-net__hot { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hx-net__box { fill: var(--hx-panel-2); stroke: var(--hx-line); }
.hx-net__name { fill: var(--ink); font-size: 13px; font-weight: 700; }
.hx-net__id { fill: var(--hx-ink-3); font-size: 10px; }
.hx-net__caret { fill: var(--accent); opacity: 0; }
.is-in .hx-net__k1 { animation: hx-k1 8s infinite; }
.is-in .hx-net__k2 { animation: hx-k2 8s infinite; }
.is-in .hx-net__k3 { animation: hx-k3 8s infinite; }
.is-in .hx-net__caret { animation: hx-caret 8s steps(1) infinite; }
.is-in .hx-net__hot { animation: hx-nethot 8s infinite; }
.is-in .hx-net__far { animation: hx-far 8s infinite; }
.is-in .hx-net__far--2 { animation-name: hx-far2; }
@keyframes hx-k1 { 0%, 9% { opacity: 0; } 10%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hx-k2 { 0%, 15% { opacity: 0; } 16%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hx-k3 { 0%, 21% { opacity: 0; } 22%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
/* steps(1): the caret jumps one letter to the right as each letter lands, then blinks once and goes */
@keyframes hx-caret {
  0% { opacity: 0; transform: none; }
  4% { opacity: 1; transform: none; }
  10% { opacity: 1; transform: translateX(10px); }
  16% { opacity: 1; transform: translateX(18px); }
  22% { opacity: 1; transform: translateX(26px); }
  25% { opacity: 0; transform: translateX(26px); }
  27% { opacity: 1; transform: translateX(26px); }
  30%, 100% { opacity: 0; transform: translateX(26px); }
}
@keyframes hx-nethot { 0%, 28% { stroke-dashoffset: 1; opacity: 1; } 52%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hx-far { 0%, 44% { opacity: 0; transform: translateY(4px); } 50%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes hx-far2 { 0%, 50% { opacity: 0; transform: translateY(4px); } 56%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* demo 2: a finding is accepted with a reason and stops warning */
.hx-chk { padding: 1rem; }
.hx-chk__head { display: flex; justify-content: space-between; align-items: center; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .8rem; }
.hx-chk__head span:first-child::before { content: "// "; color: var(--accent); }
.hx-chk__badge { display: inline-grid; min-width: 1.4rem; text-align: center; }
.hx-chk__badge b { grid-area: 1 / 1; font-weight: 700; padding: .05rem .35rem; }
.hx-chk__badge b:first-child { background: var(--w-red); color: #fff; opacity: 0; }
.hx-chk__badge b:last-child { background: var(--w-grn); color: #000; }
.hx-chk__row { display: grid; border-left: 3px solid var(--hx-line); background: var(--hx-panel-2); margin-top: .4rem; }
.hx-chk__row > span { grid-area: 1 / 1; padding: .6rem .7rem; line-height: 1.45; }
.hx-chk__row--err { border-left-color: var(--w-grn); }
.hx-chk__row--err > span:first-child { opacity: 0; color: var(--ink); }
.hx-chk__row--err > span:last-child i { font-style: normal; color: var(--w-grn); }
.is-in .hx-chk__row--err { animation: hx-chkbar 9s infinite; }
.is-in .hx-chk__row--err > span:first-child, .is-in .hx-chk__badge b:first-child { animation: hx-chkA 9s infinite; }
.is-in .hx-chk__row--err > span:last-child, .is-in .hx-chk__badge b:last-child { animation: hx-chkB 9s infinite; }
@keyframes hx-chkbar { 0%, 44% { border-left-color: var(--w-red); box-shadow: inset 0 0 0 1px rgba(255, 68, 56, .35); } 52%, 100% { border-left-color: var(--w-grn); box-shadow: none; } }
@keyframes hx-chkA { 0%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hx-chkB { 0%, 46% { opacity: 0; } 54%, 100% { opacity: 1; } }

/* demo 3: the form board tiles itself onto sheets */
.hx-fb__sheet { fill: rgba(255, 255, 255, .02); stroke: rgba(255, 255, 255, .34); stroke-width: 1; stroke-dasharray: 5 4; }
.hx-fb__sheet--empty { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .12); }
.hx-fb__label { fill: rgba(255, 255, 255, .22); font-size: 17px; font-weight: 700; }
.hx-fb__trunk { fill: none; stroke: #d7d9d9; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hx-fb__node { fill: #000; stroke: #d7d9d9; stroke-width: 1.6; }
.hx-fb__dim { fill: var(--ink-2); font-size: 10px; }
.hx-fb__x { stroke: var(--accent); stroke-width: 1.4; }
.is-in .hx-fb__sheet, .is-in .hx-fb__label { animation: hx-show .5s ease both; animation-delay: calc(var(--i) * .09s + .2s); }
.is-in .hx-fb__trunk { animation: hx-draw 1.6s var(--hx-ease) 1.2s both; }
.is-in .hx-fb__late { animation: hx-show .5s ease 2.5s both; }
.is-in .hx-fb__x { animation: hx-xpop .5s var(--hx-ease) both; animation-delay: calc(var(--i) * .08s + 2.8s); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes hx-xpop { from { opacity: 0; transform: scale(2.4) rotate(45deg); } to { opacity: 1; transform: none; } }

/* ---- free for hobbyists --------------------------------------------------- */

.hx .hx-free {
  border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); overflow: clip;
  background: radial-gradient(60rem 32rem at 88% 0%, rgba(255, 106, 31, .11), transparent 70%);
}
.hx-free__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; margin-bottom: 4.5rem; }
.hx-free__top .hx-sechead { margin-bottom: 0; }
.hx-price { text-align: right; }
.hx-price b {
  display: block; font-weight: 900; font-size: clamp(6.5rem, 15vw, 12.5rem); line-height: .8; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
/* The euro sign is solid: outlined, the overlapping contours of the variable font show through it. */
.hx-price b small { font-size: .34em; vertical-align: top; margin-left: .12em; color: var(--accent); -webkit-text-stroke: 0; letter-spacing: 0; }
.hx-price span { display: block; margin-top: 1.4rem; font-family: var(--hx-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-ink-3); }
.is-in.hx-price b { animation: hx-glowpulse 4.5s ease-in-out infinite; }
@keyframes hx-glowpulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 106, 31, 0)); }
  50% { filter: drop-shadow(0 0 1.6rem rgba(255, 106, 31, .55)); }
}

/* One wire runs over the three points, with a pin where each one starts. */
.hx-free__cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; border-top: 1px solid var(--hx-line); padding-top: 2.4rem; }
.hx-free__cols::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform-origin: 0 50%; }
.hx-free__cols::after { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 10px 2px var(--hx-glow); opacity: 0; }
.hx-free__cols > div { position: relative; }
.hx-free__cols > div::before { content: ""; position: absolute; left: 0; top: calc(-2.4rem - 5px); width: 9px; height: 9px; background: var(--accent); }
.hx-free__n { display: block; font-family: var(--hx-mono); font-size: .72rem; letter-spacing: .16em; color: var(--accent); margin-bottom: .6rem; }
.hx-free__cols h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.hx-free__cols p { color: var(--ink-2); margin: 0; }
.is-in.hx-free__cols::before { animation: hx-fill 1.6s var(--hx-ease) both; }
.is-in.hx-free__cols::after { animation: hx-rail 6s linear 1.6s infinite; }
.is-in.hx-free__cols > div { animation: hx-fadeup .9s var(--hx-ease) both; animation-delay: calc(var(--i) * .18s + .25s); }
@keyframes hx-rail { 0% { left: 0; opacity: 0; } 4%, 96% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.hx-free__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 3.5rem 0 0; }
.hx-free__cta > span { color: var(--ink-2); font-size: .95rem; max-width: 26rem; }

/* ---- technical ----------------------------------------------------------- */

.hx-tech__grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2rem 5rem; }
.hx-tech .hx-sechead { margin-bottom: 0; position: sticky; top: 7rem; align-self: start; }
.hx table { margin-top: 0; border-top: 1px solid var(--hx-line); }
.hx th, .hx td { border-bottom-color: var(--hx-line); padding-top: 1.05rem; padding-bottom: 1.05rem; }
.hx th { font-family: var(--hx-mono); font-weight: 400; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); width: 11rem; padding-top: 1.3rem; }
.hx td { color: var(--ink-2); }
.hx tr { transition: background .3s; }
.hx tr:hover { background: rgba(255, 255, 255, .03); }

/* ---- availability band and the closing call ------------------------------ */

.hx .status { border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.hx .status h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.hx-pill {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; padding: .4rem .8rem;
  border: 1px solid var(--hx-line); background: rgba(0, 0, 0, .5);
  font-family: var(--hx-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.hx-pill .hx-dot { background: var(--w-grn); --hx-glow: rgba(47, 196, 90, .4); }

.hx .cta { padding: 8rem 0 9rem; overflow: clip; }
.hx .cta::before {
  content: ""; position: absolute; left: 50%; bottom: -26rem; width: 70rem; height: 44rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 106, 31, .2), rgba(255, 106, 31, 0)); pointer-events: none;
}
.hx .cta h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02; margin-bottom: 1.6rem; text-wrap: balance; }
.hx .cta p:not(.eyebrow) { font-size: 1.15rem; margin-bottom: 2.4rem; }
.hx-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hx-wires path { fill: none; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.is-in .hx-wires path { animation: hx-draw 2.2s var(--hx-ease) both; animation-delay: calc(var(--i) * .15s); }
.hx .cta .wrap { z-index: 1; }

/* ---- breakpoints --------------------------------------------------------- */

@media screen and (max-width: 975px) {
  .hx .site-head nav a:not(.hx-nav-cta) { display: none; }
  .hx-hero { padding-top: 3rem; }
  .hx-hero__grid, .hx-problem__grid, .hx-tech__grid { grid-template-columns: minmax(0, 1fr); }
  .hx-art { max-width: 34rem; }
  .hx-stage { margin-top: 3rem; }
  .hx-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .hx-tech .hx-sechead { position: static; }
  .hx-card, .hx-card--half { grid-column: span 3; }
  .hx-card--full { grid-template-columns: minmax(0, 1fr); }
  .hx-card--full .hx-demo { order: 0; }
  .hx-panel figcaption { grid-template-columns: minmax(0, 1fr); }
  .hx-free__top { grid-template-columns: minmax(0, 1fr); margin-bottom: 3.5rem; }
  .hx-price { text-align: left; }
  .hx-free__cols { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .hx-free__cols > div + div::before { display: none; }
}

@media screen and (max-width: 575px) {
  .hx-lead { font-size: 1.15rem; }
  .hx-stage { display: none; }          /* the same screenshot opens the tour below */
  .hx-hero { padding-bottom: 3rem; }
  .hx-stat { padding: 0 1rem; }
  .hx-stat span { font-size: .85rem; }
  .hx-card, .hx-card--half, .hx-card--full { grid-column: span 6; padding: 1.6rem 1.2rem 1.8rem; }
  .hx-tabs { grid-template-columns: repeat(2, 1fr); }
  .hx-tabs button { padding-right: .5rem; }
  .hx-tabs__t { font-size: .9rem; }
  .hx-merge__docs { gap: .4rem; }
  .hx-doc { padding: .6rem .5rem .7rem; font-size: .68rem; }
  .hx-doc span { font-size: .62rem; }
  .hx .cta { padding: 5rem 0 6rem; }
  .hx-wires { display: none; }          /* squeezed this narrow the wires run through the text */
  .hx th { width: auto; padding-top: 1rem; padding-bottom: 0; }
  .hx td { padding-top: .3rem; }
}

/* ---- no motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .js .hx [data-reveal] { opacity: 1; transform: none; }
  .hx-pulse { display: none; }
  .hx-tilt { transform: none; }
  .hx-ticker__row { flex-wrap: wrap; width: auto; }
  .hx-ticker ul[aria-hidden] { display: none; }
  .hx-ticker ul { flex-wrap: wrap; row-gap: .6rem; }
}

@media print {
  .hx-progress, .hx-hero__bg, .hx-art, .hx-ticker, .hx-tabs, .hx-wires { display: none; }
  .hx .site-head { position: static; }
  .js .hx [data-reveal], .js .hx-panel { opacity: 1; visibility: visible; transform: none; }
  .js .hx-panel { grid-area: auto; margin-bottom: 2rem; }
  .hx-tilt { transform: none; box-shadow: none; }
  .hx, .hx td, .hx-card p, .hx-sechead p:last-child { color: #000; }
  .hx-card { background: #fff; }
}
