:root {
  --paper: #f7f7f7;
  --card: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --faint: #888888;
  --line: #e8d0d3;
  --primary: #70020f;
  --deep: #3a0009;
  --code-bg: #1a0206;
  --code-dim: #8a6066;
  --code-key: #fecdd0;
  --code-val: #f7f7f7;
  --accent: #fedee1;
  --guide: #b3261e;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.page {
  position: relative;
  width: 100%;
  overflow: clip;
  display: flow-root;
  pointer-events: none;
}
.canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
.paths {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}
.paths path {
  transition: fill-opacity 220ms ease;
  stroke-linejoin: miter;
  stroke-linecap: square;
}
.el-text,
.el-rect,
.el-image,
.el-embed {
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
}
.el-text {
  font-feature-settings: 'cv11', 'ss01';
}
.el-image {
  overflow: hidden;
}
.el-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 220ms ease;
}
a.el-text,
a.el-rect,
a.el-image {
  pointer-events: auto;
  cursor: pointer;
}
a.el-rect:hover {
  filter: brightness(0.87);
}
a.el-text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible:not(#nav a) {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.button-label {
  pointer-events: none;
}
.text-sel {
  background: rgba(112, 2, 15, 0.18);
}
.caret {
  display: inline-block;
  width: 1px;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.code-key {
  color: var(--code-key);
}
.code-dim {
  color: var(--code-dim);
}
.overlay,
.cursors {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.overlay {
  z-index: 10;
  overflow: visible;
}
.cursors {
  height: 100vh;
  height: 100dvh;
  z-index: 30;
  overflow: clip;
}
.badge-text {
  fill: #ffffff;
  font:
    600 11px/16px system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.cursor svg {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.28));
}
.cursor-label {
  position: absolute;
  left: 14px;
  top: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  font:
    600 11px/15px system-ui,
    sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 2px #0000002e;
  transition: opacity 0.4s ease;
}
.flocking .cursor-label {
  opacity: 0;
}
.ruler {
  position: fixed;
  z-index: 20;
  background: var(--code-bg);
  pointer-events: none;
}
.ruler-top {
  top: 0;
  left: 0;
  right: 0;
  height: var(--ruler, 20px);
  border-bottom: 1px solid var(--deep);
}
.ruler-left {
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--ruler, 20px);
  border-right: 1px solid var(--deep);
}
.ruler svg {
  display: block;
}
.ruler-corner {
  position: fixed;
  z-index: 21;
  top: 0;
  left: 0;
  width: var(--ruler, 20px);
  height: var(--ruler, 20px);
  background: var(--code-bg);
  pointer-events: none;
}
.rtext {
  font:
    500 9px 'Geist Mono',
    ui-monospace,
    monospace;
  fill: var(--code-dim);
}
.rsel {
  fill: rgba(112, 2, 15, 0.35);
}
.intro-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.intro-logo svg {
  display: block;
  width: auto;
  height: 60px;
}
.intro-logo.gone {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}
.intro-hint {
  position: fixed;
  left: 50%;
  top: min(calc(50% + 195px), calc(100% - 120px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  white-space: nowrap;
  color: var(--primary);
  opacity: 0;
  animation: intro-hint-in 0.5s ease 0.4s forwards;
  transition: opacity 0.35s ease;
}
.intro-hint span {
  margin-bottom: 12px;
  font: 600 15px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: intro-hint-breathe 2s ease-in-out 0.9s infinite;
}
.intro-hint i {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.12;
  animation: intro-hint-chevron 1.5s ease-in-out infinite;
}
.intro-hint i:nth-of-type(2) {
  animation-delay: 0.2s;
}
.intro-hint i:nth-of-type(3) {
  animation-delay: 0.4s;
}
.intro-hint.gone {
  animation: none;
  opacity: 0;
}
.intro-hint.gone span,
.intro-hint.gone i {
  animation: none;
}
@keyframes intro-hint-in {
  to {
    opacity: 1;
  }
}
@keyframes intro-hint-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes intro-hint-chevron {
  0%,
  100% {
    opacity: 0.12;
  }
  40% {
    opacity: 1;
  }
}
.el-embed {
  overflow: hidden;
}
.probe-stage {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.probe-stage > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.probe-read {
  position: absolute;
  top: 14px;
  right: 16px;
  font:
    400 11px/1.45 'Geist Mono',
    ui-monospace,
    monospace;
  color: var(--faint);
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.semantic-copy:not(.visually-hidden),
.semantic-copy:focus-within {
  position: relative;
  width: auto;
  height: auto;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.semantic-copy h1 {
  font:
    400 4rem/0.95 'Bebas Neue',
    sans-serif;
  text-transform: uppercase;
}
.semantic-copy h2,
.semantic-copy h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}
.semantic-copy p {
  max-width: 65ch;
  line-height: 1.6;
}
.semantic-copy a {
  color: var(--primary);
}
.semantic-copy pre {
  white-space: pre-wrap;
  padding: 1rem;
  background: var(--code-bg);
  color: var(--code-val);
  font-family: 'Geist Mono', monospace;
}
/* Phone canvas: smaller cursor names, and links get a 44 px tap area without moving the text. */
.phone-canvas .cursor-label {
  left: 12px;
  top: 16px;
  padding: 1px 5px;
  font-size: 10px;
  line-height: 14px;
}
.phone-canvas a.el-text:not(.button-label) {
  padding-block: 16px;
  margin-top: -16px;
}
.phone-canvas .probe-stage {
  touch-action: pan-y;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .cursors,
  .overlay,
  .ruler,
  .ruler-corner,
  .intro-logo,
  .intro-hint {
    display: none !important;
  }
}
/* =====================================================
   SITE NAVIGATION
   Copied from /styles.css (sections 05 and 06, plus "Nav Products Dropdown") with the values unchanged, so the
   real nav looks the same here without loading the site stylesheet, whose global rules would fight the canvas.
   Only the tokens it reads and the global resets it relies on are scoped to #nav.
   ===================================================== */
:root {
  --surface: #ffffff;
  --border: #e8d0d3;
  --primary-dim: rgba(112, 2, 15, 0.08);
  --text-1: #111111;
  --text-2: #555555;
  --text-3: #888888;
  --text-inv: #f7f7f7;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --inner-max: 1200px;
  --inner-pad: clamp(1.25rem, 5vw, 3rem);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.35s;
  --dur-med: 0.55s;
  --nav-h: 91px;
}
:where(#nav, #nav *, #nav *::before, #nav *::after) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:where(#nav) :where(img, svg) {
  display: block;
  max-width: 100%;
}
:where(#nav a) {
  color: inherit;
  text-decoration: none;
}
:where(#nav button) {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
#nav {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0em;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition:
        transform var(--dur-fast) var(--ease-spring),
        opacity var(--dur-fast) var(--ease-out),
        background var(--dur-fast) ease,
        box-shadow var(--dur-fast) ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover  { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: var(--text-inv);
}
.btn-primary:hover { background: #8b020f; }

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
}

#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
    transition: background var(--dur-med) ease, box-shadow var(--dur-med) ease, border-color var(--dur-med) ease;
}

#nav.scrolled {
    background: rgba(247, 247, 247, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: var(--inner-max);
    margin-inline: auto;
    padding: 1.5rem var(--inner-pad);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity var(--dur-fast) ease;
}
.nav-logo:hover { opacity: 0.7; }

.logo-img {
    height: 42px;
    transition: filter var(--dur-med) ease;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links > a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.nav-links > a:hover { color: var(--primary); background: var(--primary-dim); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast) ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem var(--inner-pad) 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    background: rgba(247,247,247,0.97);
    backdrop-filter: blur(12px);
}
.nav-mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-1);
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    transition: background var(--dur-fast) ease;
}
.nav-mobile-menu a:hover { background: var(--primary-dim); }
.nav-mobile-menu .btn { margin-top: 0.5rem; justify-content: center; }
.nav-mobile-menu .btn-primary { color: var(--text-inv); }
.nav-mobile-menu.open { display: flex; }

.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav-dropdown-trigger:hover { color: var(--primary); background: var(--primary-dim); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(112,2,15,0.10);
    min-width: 210px;
    padding: 6px 0;
    z-index: 200;
}

.nav-dropdown-menu.open { display: block; }
.nav-dropdown-trigger.open { color: var(--primary); background: var(--primary-dim); }

.nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: var(--text-1);
    text-decoration: none;
    transition: background 0.12s;
}

.nav-dropdown-item:hover { background: var(--primary-dim); }
.nav-dropdown-item--highlight { color: var(--primary); }

.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 12px; }

.nav-mobile-section-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 8px 1rem 2px;
}

/* Large screens */
@media (min-width: 1400px) {
    :root { --inner-max: 1320px; }
}

/* Mobile: <= 640px, where the site collapses the links into the hamburger */
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-inner > .btn-sm { display: none; }
    .nav-hamburger { display: flex; }
}

/* Phone widths only: taller tap areas that do not change the nav layout (negative margins give the space back). */
@media (max-width: 799px) {
  .nav-logo { margin-block: -1px; padding-block: 1px; }
  .nav-links > a,
  .nav-dropdown-trigger { min-height: 44px; margin-block: -4px; }
  .nav-links > a { display: flex; align-items: center; }
  .nav-inner > .btn-sm { min-height: 44px; margin-block: -3px; justify-content: center; }
  .nav-hamburger { min-width: 44px; min-height: 44px; margin-block: -6px; align-items: center; justify-content: center; }
  .nav-dropdown-item { padding-block: 10.5px; }
}

/* =====================================================
   STATIC PHONE PAGE (below 800 px, no engine)
   Phones run the same canvas engine as desktop on a single column canvas (see hive.js). This block only styles
   #semantic-copy as a plain responsive page for the two cases where the engine is not running: <noscript>, and an
   engine that failed to start (hive.js then removes the "js" class from <html>). Every selector is scoped to
   html:not(.js) so none of it touches the canvas page.
   Design language follows docs/brand.md: Bebas Neue h1, Anton h2 and h3, system-ui body, mono eyebrows, white
   cards with a 1px #e8d0d3 border and a 12px radius.
   ===================================================== */
@media (max-width: 799px) {
  html:not(.js) {
    scroll-padding-top: 6rem;
  }
  html:not(.js) body {
    padding-top: var(--nav-h);
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.65;
  }
  html:not(.js) #visual-page {
    display: none;
  }
  html:not(.js) #semantic-copy,
  html:not(.js) #semantic-copy:focus-within {
    position: static;
    width: auto;
    height: auto;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 16px 24px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }
  html:not(.js) #semantic-copy > section {
    position: relative;
    padding: 40px 0;
    border-top: 1px solid var(--line);
  }
  html:not(.js) #semantic-copy > section#hero {
    padding-top: 32px;
    border-top: 0;
  }
  html:not(.js) #semantic-copy h1,
  html:not(.js) #semantic-copy h2,
  html:not(.js) #semantic-copy h3,
  html:not(.js) #semantic-copy p,
  html:not(.js) #semantic-copy ul,
  html:not(.js) #semantic-copy ol {
    margin: 0;
    padding: 0;
  }
  html:not(.js) #semantic-copy h1 {
    font: 400 clamp(3.4rem, 17vw, 5.5rem) / 0.95 'Bebas Neue', 'Anton', system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy h2 {
    margin-bottom: 14px;
    font: 400 clamp(2rem, 9.5vw, 3rem) / 1 'Anton', system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy h3 {
    font: 400 clamp(1.1rem, 5vw, 1.3rem) / 1.15 'Anton', system-ui, sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
  }
  html:not(.js) #semantic-copy a {
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .eyebrow {
    margin-bottom: 14px;
    font: 400 0.7rem / 1.45 'Geist Mono', ui-monospace, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .lead {
    margin-top: 18px;
    font-size: 1.125rem;
    line-height: 1.55;
  }

  /* Buttons: the site .btn, sized for a thumb. */
  html:not(.js) #semantic-copy .btn {
    text-decoration: none;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
    text-align: center;
  }
  html:not(.js) #semantic-copy .btn-primary {
    color: var(--text-inv);
  }
  html:not(.js) #semantic-copy .btn-light {
    background: var(--card);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  html:not(.js) #semantic-copy .btn-light:hover {
    background: #fff4f5;
  }

  /* Hero */
  html:not(.js) #semantic-copy .actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
  }
  html:not(.js) #semantic-copy .dispatch {
    margin-top: 32px;
  }
  html:not(.js) #semantic-copy .dispatch-call,
  html:not(.js) #semantic-copy .dispatch-sub {
    background: var(--code-bg);
    font-family: 'Geist Mono', ui-monospace, monospace;
  }
  html:not(.js) #semantic-copy .dispatch-call {
    padding: 14px 16px 0;
    border-radius: 12px 12px 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--card);
  }
  html:not(.js) #semantic-copy .dispatch-sub {
    padding: 2px 16px 14px;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--code-dim);
  }
  html:not(.js) #semantic-copy .nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    list-style: none;
  }
  html:not(.js) #semantic-copy .nodes li {
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  html:not(.js) #semantic-copy .node-name,
  html:not(.js) #semantic-copy .node-state {
    display: block;
    font-family: 'Geist Mono', ui-monospace, monospace;
    line-height: 1.5;
  }
  html:not(.js) #semantic-copy .node-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy .node-state {
    font-size: 0.75rem;
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .dispatch-foot {
    margin-top: 14px;
    font: 400 0.72rem / 1.5 'Geist Mono', ui-monospace, monospace;
    color: var(--faint);
  }
  html:not(.js) #semantic-copy .hl {
    position: relative;
  }

  /* Strip */
  html:not(.js) #semantic-copy .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
  }
  html:not(.js) #semantic-copy .chips li {
    padding: 9px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 400 0.95rem / 1.2 'Anton', system-ui, sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--deep);
  }

  /* Cards */
  html:not(.js) #semantic-copy .card {
    margin-top: 12px;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  html:not(.js) #semantic-copy .card p {
    margin-top: 8px;
  }
  html:not(.js) #semantic-copy > section > p + .card,
  html:not(.js) #semantic-copy > section > h2 + .card {
    margin-top: 18px;
  }
  html:not(.js) #semantic-copy #features-head {
    border-top: 0;
    padding-bottom: 0;
  }
  html:not(.js) #semantic-copy #features-grid {
    padding-top: 12px;
    border-top: 0;
  }
  html:not(.js) #semantic-copy #features-grid .card:first-child {
    margin-top: 0;
  }

  /* Code window */
  html:not(.js) #semantic-copy .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font: 500 0.82rem / 1.3 'Geist Mono', ui-monospace, monospace;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  html:not(.js) #semantic-copy .code-window {
    position: relative;
    margin-top: 8px;
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
  }
  html:not(.js) #semantic-copy .code-window::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--code-dim);
    box-shadow:
      18px 0 var(--code-dim),
      36px 0 var(--code-dim);
  }
  html:not(.js) #semantic-copy .code-file {
    padding: 11px 16px;
    border-bottom: 1px solid var(--deep);
    font: 400 0.75rem / 1.45 'Geist Mono', ui-monospace, monospace;
    text-align: right;
    color: var(--code-dim);
  }
  html:not(.js) #semantic-copy pre {
    margin: 0;
    padding: 14px 16px 18px;
    overflow-x: auto;
    white-space: pre;
    background: var(--code-bg);
    color: var(--code-val);
    font: 400 0.74rem / 1.7 'Geist Mono', ui-monospace, monospace;
  }
  html:not(.js) #semantic-copy pre code {
    font: inherit;
  }
  html:not(.js) #semantic-copy pre .k {
    color: var(--code-key);
  }
  html:not(.js) #semantic-copy pre .d {
    color: var(--code-dim);
  }

  /* Stats */
  html:not(.js) #semantic-copy #stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  html:not(.js) #semantic-copy .stat {
    padding: 18px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  html:not(.js) #semantic-copy .stat-n {
    font: 400 clamp(3rem, 15vw, 4.2rem) / 1 'Bebas Neue', 'Anton', system-ui, sans-serif;
    letter-spacing: 0.02em;
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .stat-l {
    margin-top: 6px;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Steps */
  html:not(.js) #semantic-copy #steps {
    counter-reset: step;
  }
  html:not(.js) #semantic-copy .step h3::before {
    counter-increment: step;
    content: '0' counter(step);
    display: block;
    margin-bottom: 8px;
    font: 400 0.7rem / 1.45 'Geist Mono', ui-monospace, monospace;
    letter-spacing: 0.12em;
    color: var(--primary);
  }

  /* EDA cards: the number sits left of the name */
  html:not(.js) #semantic-copy .eda-card h3 {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    text-transform: none;
    letter-spacing: 0;
  }
  html:not(.js) #semantic-copy .eda-card .num {
    grid-row: 1 / span 2;
    font: 400 clamp(3rem, 15vw, 4rem) / 1 'Bebas Neue', 'Anton', system-ui, sans-serif;
    letter-spacing: 0.02em;
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .eda-card .name {
    align-self: end;
    font: 600 1rem / 1.3 system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy .eda-card .per {
    align-self: start;
    font: 400 0.75rem / 1.45 'Geist Mono', ui-monospace, monospace;
    letter-spacing: 0.12em;
    color: var(--faint);
  }
  html:not(.js) #semantic-copy .eda-card .sep {
    display: none;
  }
  html:not(.js) #semantic-copy .eda-card p {
    margin-top: 14px;
  }
  html:not(.js) #semantic-copy .eda-card ul {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    list-style: none;
  }
  html:not(.js) #semantic-copy .eda-card li {
    padding: 6px 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy .eda-card li::before {
    content: '\2713';
    margin-right: 10px;
    color: var(--primary);
  }

  /* Lab: the probe figure answers touch */
  html:not(.js) #semantic-copy .lab-eyebrow {
    margin-bottom: 14px;
  }
  html:not(.js) #semantic-copy .lab-steps {
    margin-top: 18px;
    list-style: none;
    counter-reset: lab;
  }
  html:not(.js) #semantic-copy .lab-steps li {
    counter-increment: lab;
    padding: 5px 0;
    font: 400 0.8rem / 1.5 'Geist Mono', ui-monospace, monospace;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy .lab-steps li::before {
    content: counter(lab);
    display: inline-block;
    width: 1.6em;
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .probe-card {
    margin-top: 20px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  html:not(.js) #semantic-copy .probe-mount {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 8px;
  }
  html:not(.js) #semantic-copy .lab-caption {
    margin-top: 12px;
    font: 400 0.75rem / 1.5 'Geist Mono', ui-monospace, monospace;
    color: var(--faint);
  }

  /* Call to action */
  html:not(.js) #semantic-copy #cta .btn {
    display: flex;
    margin-top: 6px;
  }
  html:not(.js) #semantic-copy #cta p {
    margin-top: 12px;
  }
  html:not(.js) #semantic-copy #cta p:has(.btn) {
    margin-top: 20px;
  }
  html:not(.js) #semantic-copy .cta-count {
    margin-top: 28px;
    font: 500 0.82rem / 1.5 'Geist Mono', ui-monospace, monospace;
    color: var(--primary);
  }

  /* Footer */
  html:not(.js) #semantic-copy #footer {
    padding-bottom: 8px;
  }
  html:not(.js) #semantic-copy .foot-logo {
    display: block;
    width: auto;
    height: 34px;
  }
  html:not(.js) #semantic-copy .foot-tag {
    margin-top: 14px;
    font-size: 0.95rem;
  }
  html:not(.js) #semantic-copy .foot-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-top: 20px;
  }
  html:not(.js) #semantic-copy .foot-h {
    font: 600 0.72rem / 1.5 'Geist Mono', ui-monospace, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
  }
  html:not(.js) #semantic-copy .foot-col ul {
    list-style: none;
  }
  html:not(.js) #semantic-copy .foot-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
  }
  html:not(.js) #semantic-copy .foot-col a:hover {
    color: var(--primary);
  }
  html:not(.js) #semantic-copy .foot-copy {
    margin-top: 16px;
    font: 400 0.75rem / 1.5 'Geist Mono', ui-monospace, monospace;
    color: var(--faint);
  }
  html:not(.js) #semantic-copy a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }
}
@media (max-width: 799px) and (min-width: 480px) {
  html:not(.js) #semantic-copy .actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  html:not(.js) #semantic-copy .foot-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card animation slots: drawn 1 px inside the 10 px rounded slot outline, so the inner radius is 9 px. */
.eda-scene {
  position: absolute;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

/* The band owns its clipping; neither the work in progress nor the loop widens the page. */
.tools-clip {
  position: absolute;
  overflow: hidden;
  contain: paint;
  pointer-events: auto;
}
.tools-track,
.tools-item {
  position: absolute;
  top: 0;
  left: 0;
}
.tools-item {
  display: block;
  pointer-events: auto;
  cursor: pointer;
}
.tools-clip.is-draggable {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.tools-clip.is-dragging,
.tools-clip.is-dragging .tools-item {
  cursor: grabbing;
}
.tools-item {
  transition: transform 0.18s ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .tools-clip:not(.is-dragging) .tools-item:hover {
    transform: scale(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tools-item {
    transition: none;
  }
}
#visual-page .tools-item:focus-visible {
  outline: 2px solid #70020f;
  outline-offset: 2px;
  border-radius: 3px;
}
.tools-track {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .tools-track {
    will-change: auto;
  }
}

#semantic-copy .tools-disclaimer {
  font: 400 10px / 1.45 'Geist Mono', ui-monospace, monospace;
  color: var(--faint);
}
