/* The landing page at / (views/home.ts): the specification in the middle, the modules around it. Built on the story's
   design system (static/css/scrolly.css: tokens, type, header, footer, buttons, the composer, MCP and the plans); this
   file is the page's own layout: the hero with the device in 3D (static/js/home3d.js), the spec with its references
   (static/js/home.js), the modules as a bento grid, quality and ownership, the request box. Hairlines and quiet
   panels; colour only for the call to action, the wordmarks and the highlighted reference. */

:root {
  --c-specs: #e9c46a;
  --h-panel: color-mix(in srgb, var(--f-band) 70%, var(--f-paper));
  --h-panel-2: color-mix(in srgb, var(--f-band) 100%, #ffffff 2%);
  --h-glow: rgba(110, 150, 230, 0.16);
  --h-grid: rgba(150, 175, 215, 0.06);
  --h-hi: var(--c-specs);
  --h-hi-soft: rgba(233, 196, 106, 0.12);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --c-specs: #8a6400;
    --h-glow: rgba(70, 110, 200, 0.12);
    --h-grid: rgba(30, 50, 90, 0.06);
    --h-hi-soft: rgba(138, 100, 0, 0.09);
  }
}
:root[data-theme="light"] {
  --c-specs: #8a6400;
  --h-glow: rgba(70, 110, 200, 0.12);
  --h-grid: rgba(30, 50, 90, 0.06);
  --h-hi-soft: rgba(138, 100, 0, 0.09);
}
.wm-specs {
  --wm-c: var(--c-specs);
}

.h-eyebrow {
  margin: 0 0 14px;
  font: 600 13px / 1.2 var(--f-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f-ink-3);
}
.h-eyebrow .wm {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
.f-btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

/* ---------- sections */

.h-sec {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--f-rule);
}
.h-sec-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.h-sec-head h2,
.h-trust h2 {
  margin: 0 0 18px;
  font: 600 clamp(2rem, 4vw, 3.25rem) / 1.04 var(--f-sans);
  letter-spacing: -0.035em;
  color: var(--f-ink);
  text-wrap: balance;
}
.h-sec-head > p:last-child {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--f-ink-2);
  max-width: 64ch;
}

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

/* the live device comes along when the page scrolls (home3d.js, which assembles it on the way): at half speed, or on a
   desktop down to the spec's header, ending up beside it (--follow, --follow-end: measured there). The compositor
   moves it, in step with the scroll */
@keyframes h-follow-spec {
  to {
    translate: 0 var(--follow);
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* only on a desktop, down to the spec's header beside it; on a narrow screen the page is one column and the
       device would land on the next section's text: there it stays in the hero (and still assembles) */
    .h-3d.is-live.is-follow {
      animation: h-follow-spec linear both;
      animation-timeline: scroll(root);
      animation-range: 0 var(--follow-end);
    }
  }
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  /* the spec's header keeps to the left half: the device lands beside it */
  .h-spec .h-sec-head {
    max-width: min(760px, calc(50% - 32px));
  }
}

.h-hero {
  position: relative;
  overflow-x: clip; /* the device leaves downwards (the follow above) */
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
/* a faint drawing grid and a glow behind the device */
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--h-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.h-hero::after {
  content: "";
  position: absolute;
  width: 900px;
  height: 700px;
  right: -180px;
  top: 0;
  background: radial-gradient(closest-side, var(--h-glow), transparent);
  pointer-events: none;
}
.h-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: min(640px, calc(100svh - 160px));
}
.h-hero-text h1 {
  margin: 0 0 24px;
  font: 650 clamp(2.5rem, 5vw, 4.4rem) / 0.98 var(--f-sans);
  letter-spacing: -0.045em;
  color: var(--f-ink);
}
/* the headline's last line: a vertical carousel of what you develop (the copy after the last is the first again, so
   the loop never jumps); one line tall, the words roll up and hold */
.h-rot {
  display: inline-block;
  height: 1.12em;
  overflow: hidden;
  vertical-align: bottom;
}
.h-rot-track {
  display: block;
  animation: h-rot 18s cubic-bezier(0.7, 0, 0.2, 1) infinite;
}
.h-rot-track > span {
  display: block;
  height: 1.12em;
  line-height: 1.12;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--c-specs), var(--c-sim) 45%, var(--c-hub));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-rot-track > span:nth-child(2) {
  background-image: linear-gradient(100deg, var(--c-cad), var(--c-pcb));
}
.h-rot-track > span:nth-child(3) {
  background-image: linear-gradient(100deg, var(--c-fw), var(--c-cad));
}
/* PCBs in the PCB module's green */
/* robotics in the Simulation module's orange, connected devices in the Fleet module's pink */
.h-rot-track > span.r-sim {
  background-image: linear-gradient(100deg, var(--c-sim), color-mix(in srgb, var(--c-sim) 55%, white));
}
.h-rot-track > span.r-hub {
  background-image: linear-gradient(100deg, var(--c-hub), color-mix(in srgb, var(--c-hub) 55%, white));
}
.h-rot-track > span.r-pcb {
  background-image: linear-gradient(100deg, var(--c-pcb), color-mix(in srgb, var(--c-pcb) 60%, white));
}
@keyframes h-rot {
  0.00%,
  13.83% {
    translate: 0 -0.00em;
  }
  16.67%,
  30.50% {
    translate: 0 -1.12em;
  }
  33.33%,
  47.17% {
    translate: 0 -2.24em;
  }
  50.00%,
  63.83% {
    translate: 0 -3.36em;
  }
  66.67%,
  80.50% {
    translate: 0 -4.48em;
  }
  83.33%,
  97.17% {
    translate: 0 -5.60em;
  }
  100% {
    translate: 0 -6.72em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h-rot-track {
    animation: none;
  }
}
.h-lede {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--f-ink-2);
}
.h-hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.h-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--f-ink-3);
}
.h-proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.h-proof svg {
  width: 15px;
  height: 15px;
  color: var(--c-pcb);
}
.h-hero-fig {
  margin: 0 calc(-1 * min(4vw, 48px)) 0 0;
  position: relative;
}
.h-3d {
  position: relative;
  aspect-ratio: 1280 / 1000;
  width: 100%;
}
/* what the device is, under it - inside the 3D view, so it travels with the device; home3d.js keeps it just below the
   base's lowest corner */
.h-3d-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0; /* home3d.js moves it to just under the device */
  margin: 0;
  pointer-events: none;
  text-align: center;
  font: 400 14px / 1.5 var(--f-sans);
  color: var(--f-ink-3);
}
.h-3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.9s ease;
  touch-action: pan-y;
}
.h-3d.is-live canvas {
  opacity: 1;
}
/* the posters: the 3D views' first frame (deploy/landing-posters.ts), until the 3D is up or instead of it */
.h-3d-poster,
.h-pic-poster {
  pointer-events: none; /* the live view under it takes the mouse */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease;
}
.h-3d.is-live .h-3d-poster,
.h-pic-3d.is-live .h-pic-poster {
  opacity: 0;
}
/* !important: the posters sit in containers whose own img rules would show both */
.h-poster-light {
  display: none !important;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .h-poster-light {
    display: block !important;
  }
  :root:not([data-theme="dark"]) .h-poster-dark {
    display: none !important;
  }
}
:root[data-theme="light"] .h-poster-light {
  display: block !important;
}
:root[data-theme="light"] .h-poster-dark {
  display: none !important;
}
.h-3d-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.h-3d-lines path {
  fill: none;
  stroke: var(--f-ink-3);
  stroke-width: 1;
  opacity: 0.7;
}
.h-3d-lines circle {
  fill: var(--h-hi);
  stroke: var(--f-paper);
  stroke-width: 2;
}
.h-3d-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-3d-tags li {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  max-width: 220px;
  border: 1px solid var(--f-rule-2);
  border-radius: 6px;
  background: color-mix(in srgb, var(--f-paper) 92%, transparent);
  font-size: 13px;
  line-height: 1.3;
  color: var(--f-ink-2);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  pointer-events: none;
}
.h-3d-tags li.is-on {
  opacity: 1;
}
.h-3d-tags b {
  font: 600 11px / 1.2 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--h-hi);
}
.h-3d-lines g {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.h-3d-lines g.is-on {
  opacity: 1;
}

/* ---------- the specification and its references */

.h-trace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.h-trace-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.h-trace-lines circle {
  fill: var(--h-hi);
}
.h-trace-lines path {
  fill: none;
  stroke: var(--h-hi);
  stroke-width: 1.25;
  opacity: 0.55;
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: h-draw 0.7s ease forwards;
}
@keyframes h-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.h-doc,
.h-mod {
  position: relative;
  z-index: 1;
  border: 1px solid var(--f-rule);
  border-radius: 10px;
  background: var(--h-panel);
}
.h-doc {
  position: sticky;
  top: 32px;
  overflow: hidden;
}
.h-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--f-rule);
  font-weight: 600;
}
.h-doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--f-ink-3);
}
.h-doc-rows {
  margin: 0;
  padding: 6px;
  list-style: none;
}
.h-req {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 2px 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.h-req:hover {
  background: color-mix(in srgb, var(--f-ink) 4%, transparent);
}
.h-req:focus-visible {
  outline: 2px solid var(--f-focus);
  outline-offset: 1px;
}
.h-req code {
  grid-row: span 2;
  align-self: start;
  padding-top: 2px;
  font: 600 12px / 1.4 var(--f-mono);
  color: var(--f-ink-3);
  transition: color 0.2s ease;
}
.h-req-area {
  font-size: 13px;
  font-weight: 600;
  color: var(--f-ink-3);
}
.h-req-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--f-ink-2);
}
.h-req.is-on {
  border-color: color-mix(in srgb, var(--h-hi) 45%, transparent);
  background: var(--h-hi-soft);
}
.h-req.is-on code,
.h-req.is-on .h-req-area {
  color: var(--h-hi);
}
.h-req.is-on .h-req-text {
  color: var(--f-ink);
}
.h-mods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.h-mod {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 20px;
  padding: 14px 18px;
}
.h-mod-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 0;
  font-weight: 600;
  font-size: 16px;
}
.h-mod-head > span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--f-ink-3);
}
.h-mod ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-mod li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--f-ink-3);
  transition: color 0.25s ease;
}
.h-mod li + li {
  border-top: 1px solid var(--f-rule);
}
.h-refs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  flex: none;
}
.h-refs code {
  padding: 1px 6px;
  border: 1px solid var(--f-rule);
  border-radius: 4px;
  font: 500 11px / 1.5 var(--f-mono);
  color: var(--f-ink-3);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.h-mod li.is-hit {
  color: var(--f-ink);
}
.h-mod li.is-hit code.is-hit {
  color: var(--h-hi);
  border-color: color-mix(in srgb, var(--h-hi) 55%, transparent);
  background: var(--h-hi-soft);
}

/* ---------- the modules: the honeycomb follows the steps (home.js moves .h-cam onto the active cell) */

.h-scrolly {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.h-stage {
  position: sticky;
  top: max(24px, calc(50svh - 380px)); /* centred in the window: on a tall screen the 760 px stage is not at the top */
  height: calc(100svh - 48px);
  max-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* the comb fades out towards the stage's edges instead of being cut off there (the phone's strip keeps its edge) */
@media (min-width: 900px) {
  .h-stage {
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
      linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    mask-composite: intersect;
  }
}
.h-stage-in {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 100%;
}
.h-stage-in::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--h-glow), transparent);
}
.h-comb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* the camera scales around user 0,0 (the middle of the view box; view-box's reference box starts at user 0,0) */
.h-cam {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.h-comb .hc {
  --hc: var(--wm-faezor);
  transition: opacity 0.5s ease;
}
.h-comb .hc-specs {
  --hc: var(--c-specs);
}
.h-comb .hc-pcb {
  --hc: var(--c-pcb);
}
.h-comb .hc-cad {
  --hc: var(--c-cad);
}
.h-comb .hc-firmware {
  --hc: var(--c-fw);
}
.h-comb .hc-sim {
  --hc: var(--c-sim);
}
.h-comb .hc-hub {
  --hc: var(--c-hub);
}
.h-comb .hc-fill {
  fill: var(--f-paper);
  stroke: var(--hc);
  stroke-width: 2.5;
  transition: fill 0.4s ease, stroke-width 0.4s ease;
}
.h-comb .hc-glow {
  fill: none;
  stroke: var(--hc);
  stroke-width: 10;
  opacity: 0;
  transition: opacity 0.4s ease, stroke-width 0.5s ease;
}
.h-comb .hc-icon {
  fill: none;
  stroke: var(--hc);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.h-comb .hc-name {
  font: 560 13px var(--f-sans);
  fill: var(--f-ink-2);
  text-anchor: middle;
}
/* the active cell rises out of the comb as a lit hex prism: a shaded face (light from the top left), a gloss on the upper half, its colour's shadow under it; the others step
   back. One-shot animations: they replay each time a cell becomes active */
.h-comb .hc-pop {
  transition: scale 0.65s cubic-bezier(0.34, 1.8, 0.5, 1), translate 0.65s cubic-bezier(0.34, 1.8, 0.5, 1);
}
.h-comb .hc-mark {
  transition: scale 0.6s cubic-bezier(0.34, 1.7, 0.5, 1);
}
/* the halos under lit cells (views/home.ts: radial gradients, no filters) */
.h-comb .hc-halo {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hch-0 {
  stop-color: var(--hc);
  stop-opacity: 0.42;
}
.hch-1 {
  stop-color: var(--hc);
  stop-opacity: 0;
}
.h-comb[data-active="faezor"] .hc-halo-faezor,
.h-comb[data-active="specs"] .hc-halo-specs,
.h-comb[data-active="pcb"] .hc-halo-pcb,
.h-comb[data-active="cad"] .hc-halo-cad,
.h-comb[data-active="firmware"] .hc-halo-firmware,
.h-comb[data-active="sim"] .hc-halo-sim,
.h-comb[data-active="hub"] .hc-halo-hub {
  opacity: 1;
}
.h-comb.is-checks .hc-halo {
  opacity: 0.6;
}
.h-comb linearGradient,
.h-comb radialGradient {
  --hc: var(--wm-faezor);
}
.hcg-0 {
  stop-color: color-mix(in srgb, var(--hc) 45%, white);
}
.hcg-1 {
  stop-color: var(--hc);
}
.hcg-2 {
  stop-color: color-mix(in srgb, var(--hc) 55%, black);
}
.h-comb .hc-face,
.h-comb .hc-shine {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.h-comb .hc-shine {
  fill: url(#hc-shine-g);
}
.h-comb .hc-ping {
  fill: none;
  stroke: var(--hc);
  stroke-width: 3;
  opacity: 0;
  pointer-events: none;
}
.h-comb[data-active] .hc {
  opacity: 0.3;
}
.h-comb[data-active] .hc-pop {
  scale: 0.9;
}
.h-comb[data-active] .hc-link.is-active .hc {
  opacity: 1;
}
.h-comb .hc-link.is-active .hc-pop {
  scale: 1.16;
  translate: 0 -5px;
}
.h-comb .hc-link.is-active .hc-fill {
  stroke: color-mix(in srgb, var(--hc) 35%, white);
  stroke-width: 1.5;
}
.h-comb .hc-link.is-active .hc-face {
  opacity: 1;
}
.h-comb .hc-link.is-active .hc-shine {
  opacity: 0.55;
}
.h-comb .hc-link.is-active .hc-glow {
  opacity: 0;
}
.h-comb .hc-link.is-active .hc-icon {
  stroke: #fff;
}
.h-comb .hc-link.is-active .hc-name {
  fill: #fff;
  font-weight: 650;
  stroke: color-mix(in srgb, var(--hc) 45%, black);
  stroke-width: 1.2;
  paint-order: stroke;
}
.h-comb .hc-link.is-active .hc-ping {
  animation: hc-ping 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s;
}
.h-comb .hc-link.is-active .hc-mark {
  animation: hc-bounce 0.7s cubic-bezier(0.34, 1.7, 0.5, 1) 0.08s;
}
@keyframes hc-ping {
  from {
    opacity: 0.8;
    scale: 1;
    stroke-width: 2.5;
  }
  to {
    opacity: 0;
    scale: 1.6;
    stroke-width: 0.5;
  }
}
@keyframes hc-bounce {
  0% {
    scale: 0.6;
  }
  60% {
    scale: 1.22;
  }
  100% {
    scale: 1;
  }
}
/* the last step ("Automatic tests for every domain"): every cell lit as a prism and a check mark popping onto
   each, one after the other */
.h-comb .hc-check {
  scale: 0;
  opacity: 0;
  transition: scale 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}
.h-comb .hc-check circle {
  fill: var(--c-pcb);
  stroke: #fff;
  stroke-width: 2;
}
.h-comb .hc-check path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.h-comb.is-checks .hc {
  opacity: 1;
}
.h-comb.is-checks .hc-pop {
  scale: 1;
}
.h-comb.is-checks .hc-face {
  opacity: 1;
}
.h-comb.is-checks .hc-shine {
  opacity: 0.5;
}
.h-comb.is-checks .hc-fill {
  stroke: color-mix(in srgb, var(--hc) 35%, white);
  stroke-width: 1.5;
}
.h-comb.is-checks .hc-icon {
  stroke: #fff;
}
.h-comb.is-checks .hc-name {
  fill: #fff;
  font-weight: 650;
  stroke: color-mix(in srgb, var(--hc) 45%, black);
  stroke-width: 1.2;
  paint-order: stroke;
}
.h-comb.is-checks .hc-check {
  scale: 1;
  opacity: 1;
  transition: scale 0.55s cubic-bezier(0.34, 1.9, 0.5, 1), opacity 0.2s ease;
}
.h-comb.is-checks .hc-checks > :nth-child(1) .hc-check {
  transition-delay: 0.25s;
}
.h-comb.is-checks .hc-checks > :nth-child(2) .hc-check {
  transition-delay: 0.43s;
}
.h-comb.is-checks .hc-checks > :nth-child(3) .hc-check {
  transition-delay: 0.61s;
}
.h-comb.is-checks .hc-checks > :nth-child(4) .hc-check {
  transition-delay: 0.79s;
}
.h-comb.is-checks .hc-checks > :nth-child(5) .hc-check {
  transition-delay: 0.97s;
}
.h-comb.is-checks .hc-checks > :nth-child(6) .hc-check {
  transition-delay: 1.15s;
}
.h-comb.is-checks .hc-checks > :nth-child(7) .hc-check {
  transition-delay: 1.33s;
}
.h-step.h-step-checks {
  min-height: min(calc(100svh - 48px), 760px);
}
.h-step-checks .h-checks-h {
  margin: 0 0 12px;
  font: 600 clamp(2rem, 4vw, 3.25rem) / 1.04 var(--f-sans);
  letter-spacing: -0.035em;
  color: var(--f-ink);
  text-wrap: balance;
}
.h-comb .hc-link:hover .hc {
  opacity: 1;
}
.h-comb[data-active] .hc-link:not(.is-active):hover .hc-pop {
  scale: 1;
}
.h-comb .hc-link:focus-visible .hc-fill {
  stroke: var(--f-focus);
}
.h-steps-head {
  margin-bottom: 0;
}
.h-step {
  min-height: min(64svh, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding-block: 48px;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.h-step.is-active,
.h-scrolly:not(.is-ready) .h-step {
  opacity: 1;
}
.h-step h3 {
  margin: 0 0 8px;
  font: 600 16px / 1.2 var(--f-sans);
}
.h-step-lead {
  margin: 0 0 12px;
  font: 600 clamp(1.6rem, 2.8vw, 2.3rem) / 1.08 var(--f-sans);
  letter-spacing: -0.03em;
  color: var(--f-ink);
}
.h-step-body {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--f-ink-2);
}
.h-step-body:last-child {
  margin-bottom: 0;
}
.h-pic {
  display: grid;
  place-items: center;
  max-width: 620px;
}
.h-pic picture,
.h-pic img {
  display: block;
  width: 100%;
  height: auto;
}
.h-pic-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1242 / 778;
}
.h-pic-3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.8s ease;
  touch-action: pan-y;
}
.h-pic-3d.is-live canvas {
  opacity: 1;
}
.h-intake {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 40px minmax(0, 1.2fr);
  align-items: center;
  gap: 12px;
  max-width: 620px;
}
.h-intake-in {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-intake-in li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--f-rule);
  border-radius: 8px;
  background: var(--h-panel);
  font-size: 14px;
  color: var(--f-ink-2);
}
.h-intake-in svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--f-ink-3);
}
.h-intake-arrow {
  height: 1px;
  background: linear-gradient(90deg, var(--f-rule-2), var(--c-specs));
  position: relative;
}
.h-intake-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border: 4.5px solid transparent;
  border-left: 7px solid var(--c-specs);
  border-right: 0;
}
.h-intake-doc {
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--c-specs) 35%, var(--f-rule));
  border-radius: 10px;
  background: var(--h-panel);
}
.h-intake-doc p {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 9px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--f-ink-2);
}
.h-intake-doc p + p {
  border-top: 1px solid var(--f-rule);
}
.h-intake-doc code {
  font: 600 11.5px / 1.6 var(--f-mono);
  color: var(--c-specs);
}
.h-fleet {
  max-width: 520px;
  border: 1px solid var(--f-rule);
  border-radius: 10px;
  background: var(--h-panel);
  padding: 6px 16px;
}
.h-fleet p {
  display: grid;
  grid-template-columns: 10px 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  color: var(--f-ink-2);
}
.h-fleet p + p {
  border-top: 1px solid var(--f-rule);
}
.h-fleet b {
  color: var(--f-ink);
  font-weight: 600;
}
.h-fleet i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-pcb);
}
.h-fleet i.is-busy {
  background: var(--c-hub);
}
.h-code {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--f-rule);
  border-radius: 8px;
  background: var(--f-screen);
  color: #c9d3e1;
  font: 12.5px / 1.65 var(--f-mono);
  overflow-x: auto;
  white-space: pre;
}
/* the simulation step: firmware, virtual board and the device's world in one loop */
/* the arrows between the boxes, and the loop back underneath */

/* ---------- quality and ownership */

/* ownership: the text on the left, the soup on the right */
.h-own {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start; /* the heading at the section's top, not centred against the soup */
  margin-top: 0; /* right after the module story's last step */
}
.h-trust-p {
  margin: 0 0 20px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--f-ink-2);
}
.h-trust-note {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: var(--f-ink-3);
}
.h-trust-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--c-pcb);
}
.h-soup {
  position: relative;
  height: clamp(320px, 34vw, 440px);
  border: 1px solid var(--f-rule);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, var(--h-glow), transparent),
    var(--f-paper);
  overflow: hidden;
  /* without the script: a plain cloud */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  justify-content: center;
  padding: 20px;
}
.h-soup.is-live {
  display: block;
  padding: 0;
  cursor: grab;
  user-select: none;
}
.h-soup.is-drag {
  cursor: grabbing;
}
.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--f-rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--f-ink) 4%, var(--f-paper));
  font: 500 15px var(--f-mono);
  color: var(--f-ink);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.h-soup.is-live .h-chip {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}
.h-chip-logo {
  font: 600 17px var(--f-sans);
  padding: 10px 18px 10px 14px;
}
.h-chip-logo svg {
  width: 22px;
  height: 22px;
}
.h-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cc);
  box-shadow: 0 0 8px var(--cc);
}
.h-chip-pcb {
  --cc: var(--c-pcb);
}
.h-chip-cad {
  --cc: var(--c-cad);
}
.h-chip-fw {
  --cc: var(--c-fw);
}
@media (max-width: 899px) {
  .h-own {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- the request box, MCP and the plans keep the story's styles; they follow the same rhythm here */

.h-ask {
  background: linear-gradient(180deg, var(--f-band), var(--f-paper));
}
.pv-home .f-mcp,
.pv-home .f-plans {
  border-top: 1px solid var(--f-rule);
}

/* ---------- smaller screens */

@media (max-width: 899px) {
  .h-hero-grid,
  .h-trace {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-hero-grid {
    min-height: 0;
  }
  .h-doc {
    position: relative;
    top: 0;
  }
  .h-trace-lines {
    display: none;
  }
  /* phones: the honeycomb is a band under the header, the steps scroll beneath it */
  .h-scrolly {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .h-stage {
    top: 0;
    z-index: 2;
    height: 132px;
    margin-inline: calc(-1 * var(--f-gutter));
    background: var(--f-paper);
    border-bottom: 1px solid var(--f-rule);
  }
  .h-stage-in {
    width: 132px;
    height: 132px;
  }
  .h-stage-in::before {
    display: none;
  }
  .h-comb .hc-name {
    display: none;
  }
  .h-steps-head {
    order: -1;
  }
  .h-step {
    min-height: 0;
    padding-block: 40px;
    opacity: 1;
  }
  .h-intake {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-intake-arrow {
    display: none;
  }
}
@media (max-width: 640px) {
  .h-mods {
    grid-template-columns: minmax(0, 1fr);
  }
  /* phones: the device alone, the tags would cover it */
  .h-3d-tags,
  .h-3d-lines {
    display: none;
  }
  .h-mod {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-mod-head {
    flex-direction: row;
    justify-content: space-between;
    margin: 0 0 6px;
  }
  .h-req {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 2px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h-trace-lines path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .h-3d-tags li,
  .h-3d canvas,
  .h-pic-3d canvas,
  .h-cam,
  .h-comb .hc-pop,
  .h-comb .hc-mark {
    transition: none;
  }
  .h-comb .hc-link.is-active .hc-ping,
  .h-comb .hc-link.is-active .hc-mark {
    animation: none;
  }
}

/* the 3D views take the mouse (home3d.js: drag turns, right-drag moves, the wheel zooms) */
@media (hover: hover) and (pointer: fine) {
  .h-3d.is-live canvas,
  .h-pic-3d.is-live canvas {
    cursor: grab;
  }
  .h-3d.is-live canvas:active,
  .h-pic-3d.is-live canvas:active {
    cursor: grabbing;
  }
}

/* the morph from the home page: the device grows into the board's 3D view (static/js/home.js); here, so the way back has them too */
::view-transition-group(device) {
  animation-duration: 0.75s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}

/* " Click the board to open it.": part of the caption's sentence, only where a click opens the example (home.js) */
.h-3d-try {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .h-3d.is-live .h-3d-try {
    display: inline;
    color: var(--f-ink-2);
  }
}

/* the module story's last step is centred beside the comb; the ownership section follows closely */
.h-modules {
  padding-bottom: 0;
}
.h-trust {
  padding-top: clamp(24px, 3vw, 40px);
}

/* the footer's language switch (views/i18n.ts) */
.f-lang {
  display: inline-flex;
  gap: 12px;
  margin-left: auto;
  margin-right: 16px;
}
.f-lang a {
  color: var(--f-ink-3);
  text-decoration: none;
}
.f-lang a[aria-current] {
  color: var(--f-ink);
  font-weight: 600;
}

/* German: the rolling words are longer ("Embedded-Systemen"); the headline a size smaller, so they fit the column */
:lang(de) .h-hero-text h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.6rem);
}
/* the composer's "Examples" label (scrolly.css draws it) in German */
:lang(de) .composer .chips::before {
  content: "Beispiele";
}

/* the header's language switch: EN | DE, the current one bright */
.f-lang-top {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  border: 1px solid var(--f-rule);
  border-radius: 999px;
  padding: 2px;
}
.f-lang-top a {
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 12px/1.4 var(--f-sans);
  letter-spacing: 0.04em;
  color: var(--f-ink-3);
  text-decoration: none;
}
.f-lang-top a:hover {
  color: var(--f-ink);
}
.f-lang-top a[aria-current] {
  background: color-mix(in srgb, var(--f-ink) 12%, transparent);
  color: var(--f-ink);
}
/* on a phone the header has no room for it: the menu has the other language instead */
.f-nav .f-nav-lang {
  display: none;
}
@media (max-width: 640px) {
  .f-lang-top {
    display: none;
  }
  .f-nav .f-nav-lang {
    display: block;
  }
}

/* ---------- the live demo: the robot cell (Godot, iframe) beside the firmware's debugger (fwdebug.css) */
.h-demo-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.h-demo h2 {
  margin: 0 0 18px;
  font: 600 clamp(2rem, 4vw, 3.25rem) / 1.04 var(--f-sans);
  letter-spacing: -0.035em;
  color: var(--f-ink);
  text-wrap: balance;
}
.h-demo-grid {
  --fwd-h: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}
.h-demo-cell {
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--f-rule);
  background: var(--f-band);
}
.h-demo-cell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--fwd-h);
  border: 0;
}
.h-demo-ide {
  min-width: 0;
}
@media (max-width: 1000px) {
  .h-demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-demo-cell iframe {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3.2;
  }
}
.h-demo-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c-sim) 45%, var(--f-rule));
  color: var(--f-ink);
  font-weight: 600;
  text-decoration: none;
}
.h-demo-link:hover {
  background: color-mix(in srgb, var(--c-sim) 10%, transparent);
}
