.tx-feature {
  --tx-paper: #191822;
  --tx-text: #f5f2fa;
  --tx-muted: #c2bdcf;
  --tx-violet: #ccb1ff;
  --tx-metal: #dedbe6;
  --tx-fine: #9995a9;
  color-scheme: dark;
  color: var(--tx-text);
  background: var(--tx-paper);
  scroll-margin-top: var(--header-height);
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.tx-inner {
  width: min(76rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.tx-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.tx-intro h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8.7vw, 8.5rem);
  font-weight: 580;
  line-height: .98;
  letter-spacing: -.05em;
}

.tx-intro p, .tx-step p, .tx-island p, .tx-search p {
  color: var(--tx-muted);
  text-wrap: pretty;
}

.tx-intro p {
  max-width: 26rem;
  font-size: clamp(1.06rem, 1.45vw, 1.3rem);
  line-height: 1.65;
}
.tx-intro:lang(zh-Hans) p { max-width: 26em; text-wrap: balance; }

.tx-stage {
  width: min(100%, 64rem);
  margin: clamp(1rem, 3.5vw, 3.25rem) auto;
}

.tx-step-art, .tx-island-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tx-metal, .tx-folder { stroke: var(--tx-metal); }
.tx-fine { stroke: var(--tx-fine); stroke-width: 1; }
.tx-sheet, .tx-folder { fill: var(--tx-paper); }
.tx-gesture, .tx-seal, .tx-sheet { stroke: var(--tx-violet); }
.tx-seal { fill: var(--tx-paper); }
.tx-gesture { stroke-width: 1.85; }
.tx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.8rem, 4vw, 4.5rem);
}

.tx-step {
  border-top: 1px solid #504c5d;
  padding-block-start: clamp(1.3rem, 2.2vw, 2rem);
}

.tx-step-art { max-width: 14rem; margin: 0 auto 1.65rem; }
.tx-step h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.05vw, 2rem);
  font-weight: 590;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.tx-step p {
  margin: .75rem 0 0;
  max-width: 40ch;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.68;
}

.tx-island, .tx-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(3.25rem, 6vw, 6rem);
  margin-top: clamp(3.75rem, 6vw, 6.5rem);
  border-top: 1px solid #504c5d;
}

.tx-island h3, .tx-search h3 {
  margin: 0;
  font-size: clamp(1.95rem, 3.2vw, 3.2rem);
  font-weight: 590;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.tx-island p, .tx-search p { max-width: 43ch; margin-top: 1rem; font-size: 1.1rem; line-height: 1.68; }
.tx-search { grid-template-areas: "example copy"; scroll-margin-top: var(--header-height); }
.tx-search > div { grid-area: copy; }
.tx-search-example { grid-area: example; width: min(100%, 29rem); margin: 0 auto; }
.tx-search-example svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.tx-search-example blockquote {
  display: flex; align-items: center; gap: .8rem;
  margin: 0; padding: 0 0 1rem;
  border-bottom: 1px solid #656071;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem); font-weight: 510;
}
.tx-search-example blockquote svg { width: 1.5rem; flex: none; color: var(--tx-violet); }
.tx-search-trace { display: block; width: 2rem; height: 2.1rem; margin-inline-start: .24rem; color: var(--tx-fine); }
.tx-search-match {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  margin-inline-start: 1.8rem; padding: .45rem 0;
}
.tx-search-match svg { width: 2.5rem; color: var(--tx-violet); }
.tx-search-match strong { display: block; font-size: 1.06rem; font-weight: 550; }
.tx-search-match span { color: var(--tx-muted); font-size: .84rem; }
.tx-island-art { width: min(100%, 33rem); justify-self: end; }
.tx-island-track { stroke: #6e667f; stroke-width: 3; }
.tx-island-progress { stroke: var(--tx-violet); stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .toolbox-motion .tx-scan-line { transform: translateY(calc(27px * var(--tool-progress, 1))); }
  .toolbox-motion .tx-check { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tool-progress, 1)); }
  .toolbox-motion .tx-project-file { transform: translateY(calc(20px * (var(--tool-progress, 1) - 1))); }
  .toolbox-motion .tx-island-progress { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tool-progress, 1)); }
  .toolbox-motion .tx-island-files { transform: translateY(calc(13px * (var(--tool-progress, 1) - 1))); }
  .toolbox-motion .tx-search-trace path {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - clamp(0, var(--tool-progress, 1) * 2, 1));
  }
  .toolbox-motion .tx-search-match {
    --match: clamp(0, (var(--tool-progress, 1) - .23) * 1.85, 1);
    opacity: var(--match);
    transform: translateY(calc((1 - var(--match)) * .65rem));
  }
}

@media (max-width: 52rem) {
  .tx-intro { display: grid; gap: 1.25rem; }
  .tx-intro p { max-width: 34rem; }
  .tx-step-art { margin-bottom: 1.2rem; }
}

@media (max-width: 42rem) {
  .tx-steps { grid-template-columns: minmax(0, 1fr); }
  .tx-step {
    display: grid;
    grid-template: "mark title" auto "mark description" auto / clamp(4.5rem, 19vw, 7rem) minmax(0, 1fr);
    align-content: center;
    column-gap: .8rem;
    padding-block: 1.6rem;
  }
  .tx-step-art { grid-area: mark; align-self: start; margin: 0; width: 162%; max-width: none; justify-self: center; }
  .tx-step h3 { grid-area: title; }
  .tx-step p { grid-area: description; margin-top: .5rem; }
  .tx-stage { margin-block: 1.8rem; }
  .tx-feature { padding-bottom: 2.1rem; }
  .tx-island, .tx-search { grid-template-columns: 1fr; gap: 1.75rem; margin-top: .4rem; padding-top: 2.2rem; }
  .tx-search { grid-template-areas: "copy" "example"; padding-bottom: 2.2rem; }
  .tx-search-match { margin-inline-start: 1rem; column-gap: .6rem; }
  .tx-island p, .tx-search p { font-size: 1rem; }
  .tx-island-art { justify-self: center; }
}
