@font-face {
  font-family: 'Encode Sans Semi Expanded';
  src: url('site-media/fonts/encode-sans-semi-expanded-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Encode Sans Semi Expanded';
  src: url('site-media/fonts/encode-sans-semi-expanded-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #081827;
  --ink: #091426;
  --text: #f5f8fa;
  --ice: #edf7f8;
  --slate: #183a59;
  --focus: #9cdeff;
  --error: #ffb6b6;
  --node-face: linear-gradient(165deg, #f4fbff 0%, #d6e5ec 52%, #b5cbd8 100%);
  --node-edge: #69899d;
  --node-depth: inset 0 1px 0 #fff, inset 0 -2px 2px #8eaebe,
    0 3px 0 #476377, 0 5px 0 #071522, 0 9px 14px rgb(0 0 0 / 28%);
  --housing-face: linear-gradient(155deg, #305772, #183a59 55%, #102a40);
  --housing-depth: inset 0 1px 0 #7393a9, inset 0 -3px 0 #0c2539,
    0 4px 0 #061522, 0 10px 20px rgb(0 0 0 / 25%);
  font-family: 'Encode Sans Semi Expanded', sans-serif;
  color: var(--text);
  background: var(--navy);
  scrollbar-color: #54758a var(--navy);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--navy) url('site-media/plates/navy-material.png') repeat; }
::selection { color: var(--ink); background: #b4e7ff; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[id] { scroll-margin-top: 28px; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.page {
  width: calc(100% - 2 * clamp(32px, 4vw, 72px));
  max-width: 1280px;
  margin-inline: auto;
  container-type: inline-size;
  padding-block: clamp(20px, 2vw, 32px);
}
.stage { position: relative; width: 100%; aspect-ratio: 1536 / 1024; }
.brand, main, .memory, .pipeline, .modalities, .hardware, .node, .runtime, .steps, .step { display: contents; }
.routes { position: absolute; left: 1.3%; top: 26.17%; width: 90.49%; height: 55.66%; object-fit: contain; pointer-events: none; user-select: none; }
.route-connection { overflow: visible; filter: drop-shadow(0 0 5px rgb(98 207 255 / 16%)); }
.route-tube { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.tube-outline { stroke: #102637; stroke-width: 18; }
.tube-edge { stroke: #527e91; stroke-width: 14; }
.tube-body { stroke: #a5cdd7; stroke-width: 10; }
.tube-core { stroke: #5e8c9f; stroke-width: 6; }
.tube-highlight { stroke: #e0f5fa; stroke-width: 2; transform: translate(-2px, -2px); }
.route-signal { overflow: visible; fill: none; stroke: #dff9ff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px #62cfff) drop-shadow(0 0 12px #309de0); }
.route-signal path { opacity: 0; }
.mobile-routes { display: none; }
.site-header { position: absolute; left: 4.23%; right: 4.23%; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding-bottom: 18px; border-bottom: 1px solid #355067; }
.brand { position: static; display: flex; align-items: center; gap: 12px; flex: none; }
.header-nav { display: flex; align-items: center; gap: clamp(16px, 2cqw, 32px); }
.nav-feature { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: #b7cada; font-size: 14px; white-space: nowrap; }
.nav-feature:hover, .nav-feature:focus-visible { color: var(--focus); }
.header-entry { min-height: 44px; padding: 10px 16px; border: 1px solid #7290a6; border-radius: 10px; color: var(--text); background: #10283d; font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-entry:hover { border-color: var(--focus); color: var(--ink); background: var(--focus); }
.header-entry:active { background: #8bd2f5; color: var(--ink); }
.menu-toggle { display: none; }
.brand-mark { width: 44px; height: 30px; display: flex; gap: 9%; flex: none; }
.brand-mark i { width: 32%; height: 94%; border-radius: 2px; background: var(--text); transform: skew(-30deg); margin-left: 14%; }
.brand-mark i + i { margin-left: 0; }
.brand-name { font-size: clamp(22px, 2cqw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
h1 { position: absolute; left: 4.23%; top: calc(68px + clamp(32px, 3cqw, 44px)); width: 93.49%; font-size: clamp(40px, 4.1667cqw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.introduction { position: absolute; left: 5.79%; top: 33%; width: 77.6%; max-width: 48ch; text-wrap: balance; font-size: clamp(18px, 1.5625cqw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.memory-surface { position: absolute; left: 6.58%; top: 45.3%; width: 45.44%; height: 5.47%; border-radius: clamp(12px, 1.1cqw, 18px); }
.memory-text { position: absolute; left: 6.58%; top: 45.3%; width: 45.44%; height: 5.47%; padding-inline: 1.56cqw; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: clamp(16px, 1.4323cqw, 24px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.runtime-surface { position: absolute; left: 23.57%; top: 59.67%; width: 31.58%; height: 16.99%; border-radius: clamp(18px, 1.7cqw, 28px); background: var(--housing-face); border: 1px solid #52758d; box-shadow: var(--housing-depth); }
.runtime h2 { position: absolute; left: 23.57%; bottom: calc(31.74% + clamp(12px, 1.171875cqw, 20px)); width: 31.58%; text-align: center; font-size: clamp(20px, 1.8229cqw, 30px); line-height: 1.1; letter-spacing: -0.035em; white-space: nowrap; }
.node-surface, .node-icon, .node-label, .step-surface, .step-label { position: absolute; }
/* Shallow alloy housings echo the relief of the icons and connected tubing. */
.node-surface, .step-surface, .memory-surface {
  background: var(--node-face);
  border: 1px solid var(--node-edge);
  box-shadow: var(--node-depth);
}
.node-surface { border-radius: clamp(10px, 1cqw, 16px); }
.node-surface::after, .step-surface::after, .memory-surface::after,
.runtime-surface::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-bottom-color: rgb(64 100 122 / 25%);
  border-radius: inherit;
  pointer-events: none;
}
.runtime-surface::after { inset: 6px; border-color: rgb(156 222 255 / 12%); }
.node-icon, .control-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node-icon { color: #244860; }
.control-icon { width: 20px; height: 20px; }
.node-label, .step-label { color: var(--ink); font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; white-space: nowrap; }
.step-surface { border-radius: clamp(8px, 0.75cqw, 12px); }
.step-label .step-icon { position: static; width: clamp(18px, 1.4323cqw, 24px); height: clamp(18px, 1.4323cqw, 24px); flex: none; }
.step-label { gap: 6px; font-size: clamp(14px, 1.0417cqw, 18px); display: flex; align-items: center; justify-content: center; }

.text-input .node-surface { left: 2.6%; top: 55.37%; width: 13.35%; height: 5.47%; }
.text-input .node-icon { left: 4.04%; top: 58.105%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.text-input .node-label { left: 8.14%; top: 55.37%; height: 5.47%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.vision-input .node-surface { left: 2.6%; top: 62.3%; width: 13.35%; height: 5.47%; }
.vision-input .node-icon { left: 4.04%; top: 65.035%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.vision-input .node-label { left: 8.14%; top: 62.3%; height: 5.47%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.audio-input .node-surface { left: 2.6%; top: 69.24%; width: 13.35%; height: 5.47%; }
.audio-input .node-icon { left: 4.04%; top: 71.975%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.audio-input .node-label { left: 8.14%; top: 69.24%; height: 5.47%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.video-input .node-surface { left: 2.6%; top: 76.27%; width: 13.35%; height: 5.47%; }
.video-input .node-icon { left: 4.04%; top: 79.005%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.video-input .node-label { left: 8.14%; top: 76.27%; height: 5.47%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.gpu-output .node-surface { left: 60.68%; top: 55.47%; width: 15.43%; height: 5.86%; }
.gpu-output .node-icon { left: 62.04%; top: 58.4%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.gpu-output .node-label { left: calc(62.04% + 2.0833cqw + clamp(10px, 0.78125cqw, 14px)); top: 55.47%; height: 5.86%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.accelerator-output .node-surface { left: 60.68%; top: 65.33%; width: 15.43%; height: 5.86%; }
.accelerator-output .node-icon { left: 62.04%; top: 68.26%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.accelerator-output .node-label { left: calc(62.04% + 2.0833cqw + clamp(10px, 0.78125cqw, 14px)); top: 65.33%; height: 5.86%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.edge-output .node-surface { left: 60.68%; top: 75.1%; width: 15.43%; height: 5.86%; }
.edge-output .node-icon { left: 62.04%; top: 78.03%; transform: translateY(-50%); width: 2.0833cqw; height: 2.0833cqw; }
.edge-output .node-label { left: calc(62.04% + 2.0833cqw + clamp(10px, 0.78125cqw, 14px)); top: 75.1%; height: 5.86%; display: flex; align-items: center; font-size: clamp(16px, 1.3021cqw, 22px); }
.compress { --step-left: 25%; }
.schedule { --step-left: 34.9467%; }
.route { --step-left: 44.8934%; }
.step-surface, .step-label { left: var(--step-left); top: 68.26%; width: 8.9467%; height: 4.98%; }
/* Normal-flow footer follows the diagram, using the space formerly reserved below it. */
.site-footer { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: -6cqw 4.23% 0; padding-block: 28px 16px; border-top: 1px solid #355067; color: #b7cada; font-size: 14px; line-height: 1.6; }
.footer-identity { display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -0.035em; }
.footer-brand .brand-mark { width: 28px; height: 20px; }
.footer-copyright { text-align: right; }
.action-slot { position: absolute; left: 81.77%; top: 67.97%; transform: translateY(-50%); width: 17.06%; }
.enter-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid #77b7d5;
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(180deg, #d1f2ff, #a5dfff 48%, #7ec5e9);
  box-shadow: inset 0 1px 0 #f1fbff, inset 0 -3px 0 #619ec0,
    0 4px 0 #2a5875, 0 6px 0 #0c2437, 0 10px 16px rgb(0 0 0 / 35%);
  font-size: clamp(16px, 1.4323cqw, 20px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.enter-button > * { position: relative; z-index: 1; }
.enter-button::before { content: ''; position: absolute; z-index: 0; pointer-events: none; left: 0; top: -40%; width: 45%; height: 180%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 65%), transparent); opacity: 0; transform: translateX(-220%) skewX(-18deg); }
.enter-button:hover, .enter-button:focus-visible {
  background: linear-gradient(180deg, #e4f8ff, #bce8ff 48%, #92d3f3);
  border-color: #b7e6fb;
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #71b0d2,
    0 4px 0 #2a5875, 0 6px 0 #0c2437, 0 9px 20px rgb(112 205 255 / 24%);
}
.enter-button:active {
  background: linear-gradient(180deg, #8ac9e9, #9cdeff);
  border-color: #77b7d5;
  box-shadow: inset 0 3px 5px rgb(9 20 38 / 24%), 0 2px 0 #2a5875;
}
.enter-button:active::before, .dialog-open .enter-button::before { opacity: 0; }
/* Native modal keeps the desktop page and its route endpoints in place. */
:root { scrollbar-gutter: stable; }
:root.dialog-open { overflow: hidden; }
.signin-dialog { width: 420px; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 16px; color: var(--text); background: var(--navy); overflow: auto; }
.signin-dialog::backdrop { background: rgb(4 13 23 / 72%); }
@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .signin-dialog::backdrop { background: rgb(4 13 23 / 60%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

.signup-form { background: var(--navy); padding: 28px; border: 1px solid #5b7e96; border-radius: 16px; width: 100%; }
.form-header { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-bottom: 24px; }
.signup-form h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.field-group { display: grid; gap: 8px; }
.field-group + .field-group { margin-top: 16px; }
.signup-form label { font-size: 0.875rem; font-weight: 700; }
.signup-form input { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid #7290a6; border-radius: 8px; color: var(--text); background: #10283d; font-size: 1rem; caret-color: var(--focus); }
.signup-form input::placeholder { color: #b7cada; }
.signup-form input[aria-invalid="true"] { border-color: var(--error); }
.signup-form input:disabled { opacity: 0.65; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 24px; border: 0; border-radius: 8px; color: var(--ink); background: var(--ice); font-weight: 700; }
.submit-button:hover:not(:disabled) { background: #bce8ff; }
.submit-button:disabled { cursor: wait; opacity: 0.7; }
.form-note { font-size: 0.875rem; line-height: 1.5; color: #c9dce9; overflow-wrap: anywhere; }
.form-note:not(:empty) { margin-top: 12px; }
.form-note.is-error { color: var(--error); }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--text); background: transparent; border: 0; border-radius: 8px; }
.close-button:hover { background: var(--slate); }
.spinner { width: 16px; height: 16px; border: 2px solid #7392a7; border-top-color: var(--ink); border-radius: 50%; }

@media (width > 900px) {
  @container (max-width: 1150px) {
    .site-header { min-height: 56px; padding-bottom: 12px; }
    h1 { top: calc(56px + clamp(16px, 2cqw, 28px)); }
    .enter-button { padding-inline: 6px; }
    .step-label { flex-direction: column; gap: 3px; }
    .step .step-surface, .step .step-label { top: calc(68.26% - 4px); height: 44px; }
  }

  @container (max-width: 900px) {
    .hardware .node-label { font-size: 15px; }
  }
}

/* Stack the pipeline in reading order on narrow screens. */
@media (max-width: 900px) {
  .page { width: 100%; max-width: 680px; padding: 24px; }
  .stage { aspect-ratio: auto; }
  .routes { display: none; }
  .site-header { position: static; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 0 12px; min-height: 60px; padding-bottom: 16px; margin-bottom: 32px; }
  .brand { gap: 12px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; background: #10283d; color: var(--text); border: 1px solid #355067; border-radius: 10px; }
  .menu-toggle[aria-expanded="true"] { color: var(--focus); border-color: var(--focus); }
  .menu-toggle .menu-close, .menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: inline; }
  .header-nav { grid-column: 1 / -1; display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; margin-top: 16px; background: var(--navy); border: 1px solid #355067; border-radius: 12px; }
  .nav-feature { padding-inline: 12px; text-align: left; }
  .header-entry { margin-top: 8px; }
  .brand-mark { position: relative; inset: auto; width: 44px; height: 30px; flex: none; }
  .brand-mark i { border-radius: 2px; }
  .brand-name { position: static; font-size: clamp(1.25rem, 4vw, 2rem); }
  main { display: block; }
  h1 { position: static; width: auto; white-space: normal; font-size: clamp(2rem, 8.72vw, 3rem); line-height: 1.1; text-wrap: balance; margin-bottom: 26px; }
  .introduction { position: static; width: auto; max-width: 65ch; text-wrap: wrap; white-space: normal; font-size: 1rem; line-height: 1.65; letter-spacing: -0.01em; }
  .memory { display: none; }
  .memory-surface { display: none; }
  .memory-text { position: static; width: auto; height: auto; padding: 0; text-align: left; display: inline-block; color: var(--ice); font-size: 1rem; line-height: 1.6; letter-spacing: -0.02em; white-space: normal; }
  .pipeline { position: relative; isolation: isolate; display: grid; gap: 24px; }
  .mobile-routes { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .modalities, .hardware, .runtime { position: relative; z-index: 1; }
  .mobile-routes .tube-outline { stroke-width: 6; }
  .mobile-routes .tube-edge { stroke-width: 5; }
  .mobile-routes .tube-body { stroke-width: 3.5; }
  .mobile-routes .tube-core { stroke-width: 1.8; }
  .mobile-routes .tube-highlight { stroke-width: 0.8; transform: translate(-0.6px, -0.6px); }
  .modalities, .hardware { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hardware { position: relative; grid-template-columns: minmax(0, 1fr); }
  .node { display: flex; position: relative; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; background: var(--node-face); border: 1px solid var(--node-edge); border-radius: 12px; box-shadow: var(--node-depth); }
  .node .node-surface { display: none; }
  .node .node-icon { position: static; width: 28px; height: 28px; flex: none; transform: none; }
  .node .node-label { position: static; height: auto; font-size: 1rem; }
  .runtime { display: block; position: relative; padding: 24px 14px; background: var(--housing-face); border: 1px solid #52758d; border-radius: 20px; box-shadow: var(--housing-depth); }
  .runtime-surface { display: none; }
  .runtime h2 { position: static; bottom: auto; width: auto; font-size: clamp(1.25rem, 5vw, 1.75rem); text-align: center; margin-bottom: 20px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 480px; margin-inline: auto; }
  .step { display: block; position: relative; }
  .step-surface { display: none; }
  .step .step-label { position: static; width: auto; height: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-radius: 9px; background: var(--node-face); border: 1px solid var(--node-edge); box-shadow: var(--node-depth); font-size: 0.875rem; }
  .action-slot { position: static; transform: none; width: 100%; margin: 28px 0 32px; }
  .enter-button { min-height: 60px; padding: 12px 20px; font-size: 1.25rem; }
  .signup-form { padding: 20px; max-width: 420px; margin-inline: auto; }
  .site-footer { flex-direction: column; align-items: start; gap: 24px; margin: 48px 0 0; padding-block: 24px 8px; }
  .footer-copyright { text-align: left; }
}

/* Keep full-size labels readable on the narrowest phones. */
@media (max-width: 360px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step .step-label { flex-direction: row; gap: 10px; }
}

/* Hover lighting follows the same cool material as the routes and metal icons. */
@media (width > 900px) and (hover: hover) and (pointer: fine) {
  .node:hover .node-surface, .memory:hover .memory-surface, .step:hover .step-surface {
    border-color: var(--focus);
    box-shadow: var(--node-depth), 0 0 0 1px #9cdeff, 0 0 18px rgb(156 222 255 / 22%);
  }
  .node:hover .node-label, .memory:hover .memory-text, .step:hover .step-label { color: #183a59; }
  .runtime:hover .runtime-surface {
    border-color: #9cdeff;
    box-shadow: var(--housing-depth), 0 0 16px rgb(156 222 255 / 16%);
  }
  .runtime:hover .step-surface { border-color: #9cdeff; }
}

@media (hover: hover) and (pointer: fine) {
  .node:hover .node-icon, .step:hover .step-icon { color: #0b5e83; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .node:hover .node-icon, .step:hover .step-icon {
    animation: node-buzz 1.35s linear infinite;
  }

  .node:hover .node-surface::after,
  .step:hover .step-surface::after,
  .memory:hover .memory-surface::after,
  .runtime:hover:not(:has(.step:hover)) .runtime-surface::after,
  .node:hover::after,
  .step:hover::after,
  .runtime:hover:not(:has(.step:hover))::after {
    border-color: #9cdeff;
    box-shadow: inset 0 0 4px rgb(93 211 255 / 52%), 0 0 6px rgb(93 211 255 / 38%);
    animation: node-buzz 1.35s linear infinite, node-charge 1.35s ease-out infinite;
  }

  @media (max-width: 900px) {
    .node:hover::after, .step:hover::after, .runtime:hover:not(:has(.step:hover))::after {
      content: '';
      position: absolute;
      inset: 4px;
      border-style: solid;
      border-width: 1px;
      border-radius: inherit;
      pointer-events: none;
    }
    .step:hover::after { border-radius: 7px; }
  }

  /* A short vibration followed by a pause gives the rim time to settle. */
  @keyframes node-buzz {
    0%, 25%, 100% { translate: 0 0; }
    4%, 12% { translate: 0.9px -0.4px; }
    8%, 16% { translate: -0.9px 0.4px; }
    21% { translate: 0.4px 0; }
  }

  @keyframes node-charge {
    0%, 50%, 100% { opacity: 0.55; }
    16% { opacity: 1; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .node-surface, .memory-surface, .step-surface { transition: border-color 140ms ease, box-shadow 140ms ease; }
  .enter-button { transition: border-color 140ms ease, box-shadow 140ms ease; }
  .enter-button::before { opacity: 1; animation: entry-shimmer 5s ease-in-out infinite; }
  .enter-button:hover::before, .enter-button:focus-visible::before { animation-name: entry-shimmer-hover; animation-duration: 2.4s; }
  .enter-button:active::before, .dialog-open .enter-button::before { opacity: 0; animation-play-state: paused; }
  @keyframes entry-shimmer {
    0% { transform: translateX(-220%) skewX(-18deg); }
    28%, 100% { transform: translateX(350%) skewX(-18deg); }
  }
  @keyframes entry-shimmer-hover {
    0% { transform: translateX(-220%) skewX(-18deg); }
    55%, 100% { transform: translateX(350%) skewX(-18deg); }
  }
  .spinner { animation: spin 0.75s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
