@font-face {
  font-family: "STIX Two";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/stix-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "STIX Two";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/stix-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "STIX Two";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/stix-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "STIX Two";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/stix-italic-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #86868b;
  --dim: #6e6e73;
  --hair: rgba(255, 255, 255, 0.12);
  --light-bg: #f5f5f7;
  --light-fg: #1d1d1f;
  --light-muted: #6e6e73;
  --link: #2997ff;
  --link-light: #0066cc;
  --sel: #ffb340;
  --ice: #8fd0ff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --math: "STIX Two", "STIX Two Text", "Cambria Math", "Cambria", "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --pad: max(22px, 5vw);
  --wide: 1200px;
  --nav-h: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: rgba(41, 151, 255, 0.35);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.nw {
  white-space: nowrap;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  font: 500 0.78em/1 var(--font);
  text-align: center;
  padding: 0.3em 0.45em;
  border-radius: 6px;
  background: rgba(127, 127, 127, 0.14);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.22), inset 0 -1px 0 rgba(127, 127, 127, 0.22);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

var,
.mx {
  font-family: var(--math);
  font-weight: 400;
  letter-spacing: 0;
}

var {
  font-style: italic;
  font-size: 1.12em;
  line-height: 0;
  padding-right: 0.06em;
}

.u {
  font-family: var(--math);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

sub {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: -0.28em;
  letter-spacing: 0;
  font-feature-settings: "tnum";
}

.num {
  font-variant-numeric: tabular-nums;
}

/* section heads */

.section-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

.eyebrow {
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.038em;
}

.lede {
  margin: 26px auto 0;
  max-width: 720px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.016em;
  color: var(--muted);
  text-wrap: balance;
}

.lede-note {
  margin: 14px auto 0;
  max-width: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 600;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: live 2.4s ease-out infinite;
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 8px rgba(48, 209, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
  }
}

.light {
  background: var(--light-bg);
  color: var(--light-fg);
}

.light .lede,
.light .eyebrow {
  color: var(--light-muted);
}

/* nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.nav.on-light {
  background: rgba(245, 245, 247, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: var(--light-fg);
}

.nav-inner {
  height: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 12.5px;
  letter-spacing: -0.005em;
}

.nav-links a {
  opacity: 0.72;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.is-current {
  opacity: 1;
}

.nav-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.85;
}

/* buttons */

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #000;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.btn:hover {
  background: #fff;
}

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  color: var(--link);
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* stages */

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

.stage-canvas.is-dragging {
  cursor: grabbing;
}

.fallback {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.no-webgl .stage-canvas,
.no-webgl .hero-hint,
.no-webgl .app-hint,
.no-webgl .app-viewbar,
.no-webgl .replay {
  display: none;
}

.no-webgl .fallback {
  display: block;
}

/* hero */

.hero {
  position: relative;
  height: max(100svh, 700px);
  overflow: hidden;
  background: #000;
}

.hero-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.15s;
}

.hero-stage.is-ready,
.no-webgl .hero-stage {
  opacity: 1;
}

.hero .fallback {
  top: 36%;
  height: 40%;
}

.hero-head,
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 var(--pad);
  text-align: center;
  pointer-events: none;
}

.hero-head {
  top: calc(var(--nav-h) + clamp(26px, 6vh, 72px));
}

.hero-bottom {
  bottom: clamp(64px, 10vh, 108px);
}

.hero-bottom a {
  pointer-events: auto;
}

.hero-eyebrow {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(42px, 5.5vw, 84px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero-lede {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.36;
  font-weight: 500;
  letter-spacing: -0.016em;
  color: var(--muted);
  text-wrap: balance;
}

.hero-corner {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  pointer-events: none;
}

.hero-corner b {
  display: block;
  font-weight: 600;
  color: var(--muted);
}

.hero-spec {
  left: var(--pad);
}

.spec-gap {
  display: inline-block;
  width: 18px;
}

.hero-hint {
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.hero-hint span span {
  display: block;
}

.drag-glyph {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}

.drag-glyph::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: drag 2.4s var(--ease) infinite;
}

@keyframes drag {
  50% {
    transform: translateX(12px);
  }
}

.js .hero-head > *,
.js .hero-bottom > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1.1s var(--ease) forwards;
}

.js .hero-head > :nth-child(2) {
  animation-delay: 0.08s;
}

.js .hero-bottom > :nth-child(1) {
  animation-delay: 0.5s;
}

.js .hero-bottom > :nth-child(2) {
  animation-delay: 0.62s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* manifesto */

.manifesto {
  position: relative;
  height: 260vh;
  background: #000;
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
}

.manifesto-text {
  max-width: 1080px;
  text-align: center;
  font-size: clamp(30px, 4.5vw, 66px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.038em;
}

.manifesto-text p {
  text-wrap: balance;
}

.manifesto-text p + p {
  margin-top: 0.22em;
}

.manifesto-text .w {
  opacity: 0.17;
  transition: opacity 0.3s linear;
}

.manifesto-text .w.lit {
  opacity: 1;
}

.manifesto-last {
  margin-top: 0.6em !important;
}

.no-js .manifesto-text .w {
  opacity: 1;
}

/* engine story */

.engine {
  background: #000;
  padding-top: clamp(110px, 15vh, 190px);
}

.story {
  position: relative;
  height: 600svh;
  margin-top: clamp(30px, 5vh, 60px);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.story-stage {
  position: absolute;
  inset: 0;
}

.story .fallback {
  top: 8%;
  height: 58%;
}

.story-sticky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(300px, 46vh, 440px);
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.94) 38%, rgba(0, 0, 0, 0.6) 66%, transparent);
  pointer-events: none;
}

.story-captions,
.story-progress {
  z-index: 2;
}

.story-captions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(84px, 13.5vh, 136px);
  height: 150px;
  pointer-events: none;
}

.story-cap {
  position: absolute;
  inset: auto 0 0;
  margin: 0 auto;
  max-width: 640px;
  padding: 0 var(--pad);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.story-cap.is-on {
  opacity: 1;
  transform: none;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.story-cap h3 {
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.032em;
}

.story-cap p {
  margin-top: 12px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
  text-wrap: balance;
}

.story-progress {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 4.5vh, 44px);
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.36);
  white-space: nowrap;
}

.story-progress li {
  position: relative;
  padding-bottom: 9px;
  transition: color 0.4s;
}

.story-progress li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}

.story-progress li.is-on {
  color: #fff;
}

.story-progress li.is-on::after {
  transform: none;
}

.story-repr {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--nav-h) + 26px);
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.36);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
  pointer-events: none;
}

.story-repr.is-on {
  opacity: 1;
  transform: none;
}

.story-repr span {
  transition: color 0.3s;
}

.story-repr span.is-on {
  color: #fff;
}

/* interface */

.interface {
  padding: clamp(110px, 15vh, 180px) 0 clamp(100px, 14vh, 160px);
}

.interface .lede-note {
  color: var(--light-fg);
}

.app-wrap {
  max-width: 1280px;
  margin: clamp(48px, 7vh, 80px) auto 0;
  padding: 0 var(--pad);
}

.app {
  --app-bg: #161618;
  --app-panel: #1c1c1f;
  --app-line: rgba(255, 255, 255, 0.07);
  --app-muted: #8e8e95;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  height: min(740px, 70vw);
  min-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--app-bg);
  color: #ececf0;
  font-size: 13px;
  letter-spacing: -0.005em;
  outline: none;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 48px -12px rgba(0, 0, 0, 0.28),
    0 60px 120px -24px rgba(0, 0, 0, 0.3);
}

.app:focus-visible {
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 3px rgba(41, 151, 255, 0.25),
    0 24px 48px -12px rgba(0, 0, 0, 0.28),
    0 60px 120px -24px rgba(0, 0, 0, 0.3);
}

.app-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 0 14px 0 16px;
  background: linear-gradient(#222225, #1c1c1f);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 -1px 0 var(--app-line);
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}

.traffic i:nth-child(2) {
  background: #febc2e;
}

.traffic i:nth-child(3) {
  background: #28c840;
}

.app-doc {
  overflow: hidden;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  color: #d8d8de;
  min-width: 0;
  white-space: nowrap;
}

.app-doc em {
  font-style: normal;
  font-weight: 400;
  color: var(--app-muted);
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.segmented button {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #b4b4bb;
  transition: background 0.2s, color 0.2s;
}

.segmented button:hover {
  color: #fff;
}

.segmented button.is-active {
  background: #3a3a40;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
}

.segmented.small button {
  padding: 3px 10px;
  font-size: 12px;
}

.app-modes {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.app-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 5px 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #a9a9b1;
  font-size: 12.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.app-search:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-search kbd {
  color: #c9c9cf;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-body {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 284px;
  min-height: 0;
}

.app-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  background: var(--app-panel);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset -1px 0 0 var(--app-line);
}

.tool {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #a9a9b1;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.tool svg {
  width: 20px;
  height: 20px;
}

.tool:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.tool.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.tool.is-pressed {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.16);
}

.tool:disabled {
  opacity: 0.3;
  cursor: default;
  background: none;
}

.tool[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
  color: #fff;
  background: rgba(50, 50, 56, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.tool-sep {
  width: 22px;
  height: 1px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.1);
}

.app-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #0e0e10;
}

.app-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.app-overlay .m-line {
  fill: none;
  stroke: var(--sel);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.8;
}

.app-overlay .m-arc {
  fill: rgba(255, 179, 64, 0.12);
  stroke: var(--sel);
  stroke-width: 1.25;
}

.app-overlay .m-badge circle {
  fill: var(--sel);
}

.app-overlay .m-badge text {
  fill: #1a1206;
  font: 700 10px/1 var(--font);
  text-anchor: middle;
  dominant-baseline: central;
}

.app-overlay .frz {
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0.9;
}

.m-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px 7px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  background: rgba(22, 22, 24, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.m-label var {
  color: var(--sel);
  font-size: 17px;
}

.m-label b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.m-label .u {
  font-size: 15px;
  color: #c9c9cf;
}

.m-label.is-editable {
  cursor: ew-resize;
  padding-left: 22px;
  padding-right: 22px;
}

.m-label.is-editable::before,
.m-label.is-editable::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border: solid rgba(255, 179, 64, 0.85);
  border-width: 0 0 1.5px 1.5px;
  transition: transform 0.25s var(--ease);
}

.m-label.is-editable::before {
  left: 10px;
  transform: rotate(45deg);
}

.m-label.is-editable::after {
  right: 10px;
  transform: rotate(-135deg);
}

.m-label.is-editable:hover::before,
.m-label.is-scrubbing::before {
  transform: translateX(-2px) rotate(45deg);
}

.m-label.is-editable:hover::after,
.m-label.is-scrubbing::after {
  transform: translateX(2px) rotate(-135deg);
}

.m-label.is-scrubbing {
  box-shadow: inset 0 0 0 1.5px var(--sel), 0 0 0 4px rgba(255, 179, 64, 0.18), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.app-tip {
  position: absolute;
  z-index: 4;
  padding: 5px 9px;
  border-radius: 7px;
  font: 600 12px/1.2 var(--font);
  white-space: nowrap;
  color: #fff;
  background: rgba(30, 30, 34, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translate(14px, -135%);
  pointer-events: none;
}

.app-tip small {
  margin-left: 6px;
  font-weight: 500;
  color: var(--app-muted);
}

.app-viewbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-viewbar .segmented,
.icon-btn {
  background: rgba(30, 30, 34, 0.78);
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #b4b4bb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.icon-btn:hover {
  color: #fff;
}

.app-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  white-space: nowrap;
  color: #d4d4da;
  background: rgba(30, 30, 34, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.4s;
  pointer-events: none;
}

.app-hint.is-hidden {
  opacity: 0;
}

.app-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  max-width: calc(100% - 200px);
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: rgba(40, 40, 46, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: toast 0.35s var(--ease);
}

.app-toast code {
  margin-right: 8px;
  font: 500 11.5px var(--mono);
  color: var(--sel);
}

@keyframes toast {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 24px;
  height: 24px;
  margin: -3px 0 0 -5px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  transition: opacity 0.4s;
  will-change: transform;
}

.ghost svg {
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.12s;
}

.ghost.is-down svg {
  transform: scale(0.86);
}

.ghost i {
  position: absolute;
  left: 5px;
  top: 3px;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: scale(0.3);
}

.ghost.is-click i {
  animation: ripple 0.5s ease-out;
}

@keyframes ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.ghost.is-out {
  opacity: 0;
}

.app-inspector {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  overflow-y: auto;
  background: var(--app-panel);
  border-left: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 1px 0 0 var(--app-line);
}

.ins-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ins-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--app-muted);
}

.ins-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ins-title h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ins-title small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--app-muted);
}

.el-tile {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font: 600 18px/1 var(--font);
  color: #fff;
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 56%, color-mix(in srgb, var(--c) 62%, #000));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.el-tile.light-el {
  color: #1d1d1f;
  text-shadow: none;
}

.el-tile.mol {
  background: #2a2a2f;
}

.el-tile.mol svg {
  width: 26px;
  height: 26px;
  color: #e6e6eb;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  font-size: 12.5px;
}

.kv dt {
  color: var(--app-muted);
}

.kv dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #e9e9ee;
}

.kv var {
  font-size: 1.18em;
}

.measure {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.measure var {
  width: 20px;
  font-size: 24px;
  color: var(--sel);
  text-align: center;
  line-height: 1;
}

.measure input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: none;
  background: none;
  color: #fff;
  font: 600 22px/1 var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.measure input:disabled {
  opacity: 1;
  color: #e9e9ee;
  -webkit-text-fill-color: #e9e9ee;
}

.measure .u {
  font-size: 17px;
  color: var(--app-muted);
}

.measure.is-editable:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255, 179, 64, 0.7), 0 0 0 3px rgba(255, 179, 64, 0.14);
}

.stepper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stepper button {
  width: 22px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #cfcfd5;
  background: rgba(255, 255, 255, 0.08);
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.stepper svg {
  width: 10px;
  height: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #dadae0;
  background: rgba(255, 255, 255, 0.06);
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.chip em {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font: 700 10px/1 var(--font);
  font-style: normal;
  color: #1a1206;
  background: var(--sel);
}

.chip small {
  font-size: 12px;
  color: var(--app-muted);
}

.ins-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--app-muted);
}

.ins-note.warn {
  color: #ffb36b;
}

.ins-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ins-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #e3e3e8;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s;
}

.ins-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.ins-btn svg {
  width: 14px;
  height: 14px;
}

.ins-btn.is-on {
  color: #b9e2ff;
  background: rgba(143, 208, 255, 0.16);
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--app-muted);
  background: #19191c;
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 var(--app-line);
}

.app-status-left,
.app-status-right {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.app-status .seg + .seg {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.app-status b {
  font-weight: 500;
  color: #d8d8de;
}

.app-status .warn {
  color: #ffb36b;
}

.app-status kbd {
  margin-left: 8px;
  font-size: 11px;
  color: #c9c9cf;
}

/* palette */

.palette {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 90px;
  background: rgba(0, 0, 0, 0.3);
  animation: fade 0.18s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.palette-box,
.cmdbar {
  width: min(580px, calc(100% - 32px));
  border-radius: 14px;
  overflow: hidden;
  color: #ececf0;
  background: rgba(34, 34, 38, 0.92);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.palette-box {
  animation: pop 0.22s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-6px);
  }
}

.palette-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #9a9aa2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.palette-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: #fff;
  font: 400 18px var(--font);
  letter-spacing: -0.01em;
}

.palette-input input::placeholder {
  color: #6f6f77;
}

.palette-input kbd {
  color: #b9b9c0;
}

.palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 340px;
  overflow-y: auto;
}

.palette-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
}

.palette-list li.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.palette-list li[aria-disabled="true"] {
  opacity: 0.4;
}

.pl-icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.pl-icon svg {
  width: 16px;
  height: 16px;
}

.pl-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-arg {
  margin-left: 10px;
  color: var(--sel);
  font-variant-numeric: tabular-nums;
}

.pl-arg svg {
  vertical-align: -1px;
  opacity: 0.7;
}

.pl-arg .mx {
  font-family: var(--font);
}

.palette-list code {
  font: 500 11.5px var(--mono);
  color: rgba(255, 255, 255, 0.4);
}

.palette-list kbd {
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.palette-empty {
  padding: 18px 12px;
  font-size: 13.5px;
  color: #8e8e95;
}

/* gestures */

.gestures {
  max-width: var(--wide);
  margin: clamp(70px, 10vh, 110px) auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.gesture-key {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 4px;
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--light-fg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gesture-key svg {
  width: 20px;
  height: 20px;
}

.gesture-key kbd {
  font-size: 13px;
  background: none;
  box-shadow: none;
}

.gesture h3 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.024em;
}

.gesture p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--light-muted);
}

/* commands */

.commands {
  position: relative;
  height: 380vh;
  background: var(--light-bg);
}

.commands-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 44px);
  padding: calc(var(--nav-h) + 12px) 0 18px;
  overflow: hidden;
}

.commands .section-head h2 {
  font-size: clamp(36px, 4.6vw, 70px);
}

.cmd-scene {
  position: relative;
  width: 860px;
  height: 470px;
  flex: none;
  transform-origin: 50% 50%;
}

.legacy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  font: 12px/1.3 Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  color: #1a1a1a;
  background: #ececec;
  border: 1px solid #8f8f8f;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 24px 50px -18px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity, filter;
}

.lg-title {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 10px;
  font-weight: 700;
  color: #333;
  background: linear-gradient(#e2e2e2, #cfcfcf);
  border-bottom: 1px solid #a8a8a8;
}

.lg-dots {
  display: flex;
  gap: 5px;
}

.lg-dots i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(#f4f4f4, #c9c9c9);
  border: 1px solid #8d8d8d;
}

.lg-menubar {
  display: flex;
  height: 24px;
  align-items: stretch;
  padding: 0 4px;
  background: #f0f0f0;
  border-bottom: 1px solid #c8c8c8;
}

.lg-menubar span {
  display: flex;
  align-items: center;
  padding: 0 9px;
}

.lg-menubar span.is-open {
  color: #fff;
  background: #316ac5;
}

.lg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 6px;
  background: linear-gradient(#f6f6f6, #e3e3e3);
  border-bottom: 1px solid #bdbdbd;
}

.lg-toolbar i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #c4c4c4;
  border-radius: 3px;
  color: #4a4a4a;
  background: linear-gradient(#fdfdfd, #e6e6e6);
}

.lg-toolbar i svg {
  width: 15px;
  height: 15px;
}

.lg-toolbar b {
  width: 1px;
  margin: 2px 4px;
  background: #b5b5b5;
}

.lg-body {
  display: grid;
  grid-template-columns: 1fr 190px;
  min-height: 0;
}

.lg-canvas {
  position: relative;
  margin: 6px;
  background: #fff;
  border: 1px solid #9c9c9c;
  box-shadow: inset 1px 1px 0 #d8d8d8;
}

.lg-mol {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lg-props {
  margin: 6px 6px 6px 0;
  background: #fafafa;
  border: 1px solid #9c9c9c;
}

.lg-props-h {
  padding: 4px 8px;
  font-weight: 700;
  background: linear-gradient(#ececec, #dcdcdc);
  border-bottom: 1px solid #b9b9b9;
}

.lg-props dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 11px;
}

.lg-props dt,
.lg-props dd {
  padding: 3px 8px;
  border-bottom: 1px solid #e3e3e3;
}

.lg-props dd {
  border-left: 1px solid #e3e3e3;
}

.lg-statusbar {
  display: flex;
  gap: 1px;
  height: 22px;
  font-size: 11px;
  color: #444;
  background: #e4e4e4;
  border-top: 1px solid #bcbcbc;
}

.lg-statusbar span {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-right: 1px solid #c5c5c5;
}

.lg-statusbar span:first-child {
  flex: 1;
}

.lg-pop {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 3px;
  background: #fafafa;
  border: 1px solid #8a8a8a;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
}

.lg-pop.is-open {
  opacity: 1;
  visibility: visible;
}

.lg-pop span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 22px;
}

.lg-pop span.is-hot {
  color: #fff;
  background: #316ac5;
}

.lg-pop hr {
  height: 1px;
  margin: 3px 2px;
  border: 0;
  background: #cfcfcf;
}

.lg-m1 {
  left: 186px;
  top: 52px;
}

.lg-m2 {
  left: 398px;
  top: 108px;
  min-width: 180px;
}

.lg-dialog {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 330px;
  margin: -142px 0 0 -165px;
  background: #ececec;
  border: 1px solid #6f6f6f;
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
}

.lg-dialog.is-open {
  opacity: 1;
  visibility: visible;
}

.lg-dialog-title {
  padding: 6px 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(#4f81c9, #2f5fa8);
}

.lg-dialog-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.lg-dialog-body label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lg-field {
  display: inline-flex;
  align-items: center;
  width: 70px;
  height: 21px;
  padding: 0 5px;
  font-family: Tahoma, Verdana, sans-serif;
  background: #fff;
  border: 1px solid #7f9db9;
}

.lg-field.wide {
  width: 110px;
}

.lg-field.is-focus {
  box-shadow: 0 0 0 1px #316ac5;
}

.lg-dialog fieldset {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 6px 10px 8px;
  border: 1px solid #b9b9b9;
}

.lg-dialog legend {
  padding: 0 4px;
}

.lg-radio,
.lg-check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lg-radio i,
.lg-check i {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #7f7f7f;
}

.lg-radio i {
  border-radius: 50%;
}

.lg-radio.is-on i {
  background: radial-gradient(circle, #1a1a1a 0 2.5px, #fff 3px);
}

.lg-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 14px 12px;
}

.lg-btn {
  min-width: 74px;
  padding: 3px 10px;
  text-align: center;
  border: 1px solid #707070;
  border-radius: 3px;
  background: linear-gradient(#fdfdfd, #dedede);
}

.lg-btn.is-hot {
  background: linear-gradient(#e5f1fb, #c4e0f7);
  border-color: #3c7fb1;
}

.lg-cursor {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  margin: -3px 0 0 -5px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  will-change: transform;
}

.cmdbar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  margin-left: -300px;
  transform: translateY(-50%) scale(0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), visibility 0s 0.7s;
}

.cmdbar.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.cmdbar .palette-input {
  font-size: 19px;
}

.cmdbar-query {
  color: #fff;
  white-space: pre;
}

.caret {
  width: 2px;
  height: 22px;
  margin-left: -8px;
  margin-right: auto;
  background: var(--link);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.cmdbar li {
  transition: opacity 0.35s, background 0.3s;
}

.cmdbar li.is-dim {
  opacity: 0.25;
}

.cmdbar li.is-fired {
  background: rgba(255, 179, 64, 0.22);
}

.cmd-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: clamp(30px, 8vw, 120px);
  justify-content: center;
  text-align: center;
}

.cmd-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.5s;
}

.cmd-side b {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.cmd-side span {
  font-size: 15px;
  font-weight: 500;
  color: var(--light-muted);
}

.cmd-side.is-dim {
  opacity: 0.28;
}

/* preopt */

.preopt {
  background: #000;
  padding: clamp(110px, 15vh, 180px) 0 clamp(90px, 12vh, 140px);
}

.preopt .lede-note {
  color: var(--fg);
}

.preopt-stage {
  position: relative;
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: clamp(48px, 7vh, 80px) auto 0;
  padding: 0 var(--pad);
  aspect-ratio: 2.05 / 1;
  min-height: 420px;
}

.preopt-stage::before {
  content: "";
  position: absolute;
  inset: 0 var(--pad);
  border-radius: 28px;
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.preopt-stage .stage-canvas,
.preopt-stage .fallback {
  left: var(--pad);
  width: calc(100% - 2 * var(--pad));
  border-radius: 28px;
}

.preopt-bar {
  position: absolute;
  left: calc(var(--pad) + 28px);
  right: calc(var(--pad) + 28px);
  bottom: 108px;
  height: 2px;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.preopt-bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.readout {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 28px 28px;
  pointer-events: none;
}

.readout > div {
  padding: 0 24px;
  text-align: center;
}

.readout > div + div {
  border-left: 1px solid var(--hair);
}

.readout dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.readout dd {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.readout dd .u {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--muted);
}

[data-preopt-tag].is-done {
  color: #30d158;
}

[data-energy-wrap] {
  transition: opacity 0.5s;
}

[data-energy-wrap].is-dim {
  opacity: 0.3;
}

.replay {
  position: absolute;
  top: 22px;
  right: calc(var(--pad) + 22px);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #d4d4da;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.replay:hover {
  background: rgba(255, 255, 255, 0.16);
}

.fineprint {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 var(--pad);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
  text-wrap: balance;
}

/* path */

.path {
  background: #000;
  padding: clamp(80px, 11vh, 140px) 0 clamp(110px, 15vh, 180px);
}

.path-track {
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: clamp(48px, 7vh, 80px) auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: #101012;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.path-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.path-top .step-num {
  margin: 0;
}

.badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.badge.now {
  color: #000;
  background: #f5f5f7;
  box-shadow: none;
}

.path-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.path-card > p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
}

.path-visual {
  margin-top: auto;
  padding-top: 24px;
}

.measures {
  display: grid;
  gap: 6px;
}

.measures div {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.measures dt var {
  font-size: 21px;
  color: var(--sel);
}

.measures dd {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.measures dd.u {
  width: 18px;
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  padding-left: 4px;
  color: var(--muted);
}

.path-visual .code {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  overflow: hidden;
  font: 500 11.5px/1.6 var(--mono);
  color: #c8c8ce;
  background: rgba(255, 255, 255, 0.04);
  white-space: pre;
}

.c-k {
  color: #fff;
}

.c-dim {
  color: #6e6e73;
}

.path-small {
  margin-top: 10px;
  font-size: 12px;
  color: var(--dim);
}

.statuses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 6px 12px 6px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.ok i {
  background: #30d158;
}

.status.unk i {
  background: #8e8e93;
}

.status.sus i {
  background: #ff9f0a;
}

.scheme {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scheme-swatch {
  flex: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
}

.scheme-swatch i {
  border-radius: 50%;
}

.scheme-swatch i:nth-child(1) {
  background: #50555e;
}

.scheme-swatch i:nth-child(2) {
  background: #ff3b30;
}

.scheme-swatch i:nth-child(3) {
  background: #3a6dff;
}

.scheme-swatch i:nth-child(4) {
  background: #e5e5ea;
}

.scheme b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.scheme small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

/* principles */

.principles {
  padding: clamp(110px, 15vh, 180px) 0 clamp(110px, 15vh, 180px);
}

.bento {
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: clamp(48px, 7vh, 80px) auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px;
  border-radius: 26px;
  background: #fff;
}

.tile h3 {
  margin-top: auto;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tile p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--light-muted);
}

.tile-big {
  font-size: 104px !important;
  line-height: 0.9 !important;
  font-weight: 700 !important;
  letter-spacing: -0.06em;
  color: var(--light-fg) !important;
  margin: 0 0 28px !important;
}

.tile-f64 {
  grid-column: span 3;
  background: #000;
  color: #f5f5f7;
}

.tile-f64 .tile-big {
  color: #f5f5f7 !important;
  font-family: var(--mono);
  font-weight: 600 !important;
  letter-spacing: -0.05em;
}

.tile-f64 p {
  color: var(--muted);
}

.tile-status {
  grid-column: span 3;
}

.tile-status .statuses {
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tile-status .status {
  background: #f2f2f4;
}

.tile-one,
.tile-native,
.tile-rust {
  grid-column: span 2;
}

.os-row {
  display: flex;
  gap: 18px;
  margin: 0 0 auto !important;
  padding-bottom: 28px;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--light-fg) !important;
}

.tile-native h3 {
  order: 2;
}

.tile-native .os-row {
  order: 1;
}

.tile-native p:last-child {
  order: 3;
}

.tile-corpus {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: end;
}

.corpus-main {
  display: flex;
  flex-direction: column;
}

.corpus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--light-fg);
}

.corpus-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tile-rust {
  background: #1d1d1f;
  color: #f5f5f7;
}

.tile-rust .tile-big {
  color: #f5f5f7 !important;
}

.tile-rust p {
  color: #a1a1a6;
}

.tile-cmd {
  grid-column: span 6;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 40px;
}

.tile-cmd h3 {
  margin: 0;
}

.tile-cmd p {
  grid-column: 1;
}

.tile-code {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 16px 20px;
  border-radius: 14px;
  font: 500 14px var(--mono);
  color: var(--light-fg);
  background: #f2f2f4;
  white-space: nowrap;
}

.tile-code .mx {
  font-family: var(--mono);
}

/* finale */

.finale {
  position: relative;
  height: max(100svh, 680px);
  overflow: hidden;
  background: #000;
}

.finale-stage {
  position: absolute;
  inset: 0;
}

.finale .fallback {
  top: 6%;
  height: 52%;
}

.finale-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(70px, 12vh, 130px);
  padding: 0 var(--pad);
  text-align: center;
  pointer-events: none;
}

.finale-word {
  font-size: clamp(64px, 10vw, 156px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.finale-line {
  margin-top: 18px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.finale-os {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

/* footer */

.footer {
  padding: 26px 0 40px;
  font-size: 12px;
  color: var(--dim);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer .nav-logo {
  font-size: 14px;
  color: var(--muted);
}

.footer p:nth-child(2) {
  flex: 1;
}

.footer a:not(.nav-logo) {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.path-track [data-reveal]:nth-child(2),
.gestures [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}

.path-track [data-reveal]:nth-child(3),
.gestures [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

.path-track [data-reveal]:nth-child(4),
.gestures [data-reveal]:nth-child(4) {
  transition-delay: 0.24s;
}

/* responsive */

@media (max-width: 1080px) {
  .nav-links {
    gap: 22px;
  }

  .app-body {
    grid-template-columns: 52px minmax(0, 1fr) 248px;
  }

  .path-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gestures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 40px;
  }

  .tile-f64,
  .tile-status {
    grid-column: span 6;
  }

  .tile-one,
  .tile-native {
    grid-column: span 3;
  }

  .tile-rust {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-pill {
    margin-left: auto;
  }

  .app-modes {
    display: none;
  }

  .app-search {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .hero-corner {
    display: none;
  }

  .hero .fallback {
    top: 30%;
    height: 40%;
  }

  .app {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  .app-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: min(64svh, 520px) auto;
  }

  .app-tools {
    display: none;
  }

  .app-inspector {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 0 var(--app-line);
    max-height: none;
  }

  .app-status {
    display: none;
  }

  .app-toast {
    max-width: calc(100% - 24px);
  }

  .app-modes {
    display: none;
  }

  .app-doc span {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .preopt-stage {
    aspect-ratio: auto;
    height: 560px;
  }

  .preopt-bar {
    bottom: 196px;
  }

  .readout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 24px 24px;
  }

  .readout > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0;
  }

  .readout > div + div {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-top: 14px;
  }

  .readout dd {
    margin: 0;
    font-size: 24px;
  }

  .tile {
    padding: 26px;
    min-height: 0;
  }

  .tile-one,
  .tile-native {
    grid-column: span 6;
  }

  .tile-corpus {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-cmd {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-code {
    grid-column: 1;
    grid-row: auto;
    margin-top: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tile-big {
    font-size: 84px !important;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cmd-compare span {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .cmd-scene {
    width: 560px;
    height: 430px;
  }

  .lg-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .lg-props,
  .lg-statusbar span:not(:first-child) {
    display: none;
  }

  .lg-menubar span {
    padding: 0 6px;
  }

  .lg-menubar span:nth-child(n + 6) {
    display: none;
  }

  .lg-m1 {
    left: 150px;
  }

  .lg-m2 {
    left: 250px;
    top: 150px;
  }

  .cmdbar {
    width: 520px;
    margin-left: -260px;
  }

  .hero .cta-row .link {
    display: none;
  }

  .hero-title {
    font-size: 35px;
  }

  .preopt-stage {
    height: 620px;
  }

  .path-track,
  .gestures {
    grid-template-columns: minmax(0, 1fr);
  }

  .gestures {
    gap: 30px;
  }

  .story-progress {
    gap: 16px;
    font-size: 12px;
  }

  .story-repr {
    gap: 16px;
    font-size: 13px;
  }

  .cta-row {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
